I'm not copying anything. I am trying to compare two files, where one is the old version of the file and one is the new version, with
Take the following two examples OLD: (0012)1234AAAABBBB NEW: (0016)1234AAAABBBB____ OLD: (0012)1235AAAABBBB NEW: (0016)1235AAAABBBBABCD The numbers in parenthesis are the lengths of the records and are not part of the record. The underscores represents blank spaces. The first four bytes of each record is the key. I want to do a compare so that for record 1234 they would be considered to be equal, but record 1235 would be considered changed. > Date: Tue, 30 Jun 2015 01:03:21 -0500 > From: [email protected] > Subject: Re: FILEM DSM compare question > To: [email protected] > > Frank Swarbrick wrote: > > >I know we have some DFSORT experts here. I'm hoping we also have some File > >Manager experts. > > I know DFSORT and ICETOOL, but like you I also ask questions on IBM-MAIN too > ;-), but I don't know File Manager... > > >I have a KSDS where I am adding a new field, and thus increasing the length > >of each record. I want to do a compare but only show the field as being > >"not equal" if the newly added characters are not spaces. But I do want to > >show them as being not equal if the newly added characters are other than > >spaces. > > Ok, lets see - you added some characters (not spaces) to new column x-y using > some utility. > > Do you want to search all 'short' and 'long' records? Or do you copy only > 'long' records and then search them only? > > Something like this INCLUDE=(<first column>,<how many characters>,CH,NE,C' ') > ? > > Or something like this - one possible way to split up your records in two > separate outputs? > > (for this example, your new field is starting at column 100 and is 10 chars > long, no variations in position and length) > > OUTFILE FNAMES=SPACES,INCLUDE=(100,10,CH,EQ,C' ') > OUTFILE FNAMES=NOSPACE,INCLUDE=(100,10,1,CH,NE,C' ') > > Or do you want to show if a space is appearing at all? In other words, do you > want to pick up a record with at least one space character in your new field? > If so, the SS statement is a great help for that. > > Or am I missing something? > > Groete / Greetings > Elardus Engelbrecht > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
