This OUTREC statement formats the records by adding a sequence number record by record... like if you consider you i/p records after passing through this OUTREC statement it would look like this
Code:
sai 00001
ravi 00002
Ofcourse you could see this sequence number because you have it in PD format, if you would like to look at it just change PD to ZD.
Now also the another set of your i/p records wolud have the SEQUENCE number like this
Code:
krishna 00001
kumar 00002
Next Comes the SPLICE(JOIN) statement which considers the key as
Code:
ON(11,8,PD)
Here splice operator checks the records with the same record number like sai and krishna have the same seqnumber 00001 so it joins both the records based on the WITH parameter
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Sai,
You can use a DFSORT/ICETOOL job like the following to do what you asked for. I assumed your input files have RECFM=FB and LRECL=80, but the job can be changed appropriately for other attributes.