Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Please give the starting position and length of each field in fileA, fileB and the output file.
Do the output records need to be in the same order as the input fileA records as shown in your example, or can the output records be in the field Z order?
Please give the starting position and length of each field in fileA, fileB and the output file.
FileA, X (1 to 13 bytes) Y(15 to 5 bytes) Z(21 to 6bytes)
FileB, M (1 to 5 bytes) Z(10 to 6bytes) in between spaces
Quote:
Do the output records need to be in the same order as the input fileA records as shown in your example, or can the output records be in the field Z order?
Yes, the output records need to be in the same order as the input fileA records as shown in my example
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
You can use a DFSORT/ICETOOL job like the following to do what you asked for. I assumed you wanted field M in the output record to start in position 28.
You would NOT get the records that don't have a match with my job because we didn't use KEEPNODUPS.
If you're not getting the output I'm getting then either your input records do not have the layout you said they had, or you changed my job in some way.