Kolusu,
I found the solution in easytrive. But Sort is our requirement please help me SYNCSORT FOR Z/OS 1.2.1.1N
Input file DCB properties
Record format : FB
Record length : 9
output files DCB properties
Record format : FB
Record length : 1552
Position of the field to be compared omited in the output file =17,9
Format=ch
The input file has 9 bytes
123456789
the above 9 bytes will be compared with output file at 17 position and if matched the record has to be removed from the output file.
My understanding of the problem now is that you have 2 files. One is the master data file with multiple fields, and the second conatins a single 9-byte field. If this 9-byte field matches position 17,9 in the master file, then it should be removed from the output file. If this is correct, then Kolusu is right in utilizing the JOIN feature. However, I would make a slight change to the SYSIN DD above:
(I apologize for the plain text - I am new to posting and have not yet figured out how to post the pretty JCL image as Kolusu has done for you).
This will discard the paired records, keeping only the unpaired records from the master file. (Without the 'ONLY,F2' specified, you could potentially have a record in the 9-byte file that does not match anything in the master file, and would therefore be written to the output file).
If this is not exactly what you were trying to accomplish, please keep me posted and I'll continue to tweak the job for you. _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
(Without the 'ONLY,F2' specified, you could potentially have a record in the 9-byte file that does not match anything in the master file, and would therefore be written to the output file).
Let me clarify, the 9-byte record would not be written out, but there would be a blank 1552-byte file. _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
Posted: Fri Jan 19, 2007 11:51 am Post subject:
amargulies wrote:
Quote:
(Without the 'ONLY,F2' specified, you could potentially have a record in the 9-byte file that does not match anything in the master file, and would therefore be written to the output file).
Let me clarify, the 9-byte record would not be written out, but there would be a blank 1552-byte file.
hmm sorry to contradict but If you specify ONLY , wouldn't the job abend as the reformat field is outside the range?
hmm sorry to contradict but If you specify ONLY , wouldn't the job abend as the reformat field is outside the range?
Kolusu,
I did not mean to cause any confusion by the way I posted the JCL. I purposely left out the OUTFIL and OUTREC statements because I did not deem them necessary in this case. Does my example make more sense now? _________________ Alissa Margulies
SyncSort Mainframe Product Services
201-930-8260
zos_tech@syncsort.com
All times are GMT - 5 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum