Joined: 10 Dec 2002 Posts: 59 Topics: 20 Location: Chennai
Posted: Wed Dec 11, 2002 9:52 am Post subject: SYNCSORT -appending data from 2 files
I have 2 input files with following descriptions:
1.First file
LRECL=300
No of records=5000(may vary for each run)
2.Second file
LRECL=5(Packed decimal)
No of record=1(The content may vary for each run)
I need to get an output file with LRECL=305 with the data in second file being appended at the end to all the records in the first file.(So it would have 5000 records)
I do not want to use COBOL program.
I want to do it through JCL SYNCSORT.
How can this output be produced with SYNCSORT(i do not have DFSORT)...
Kolusu,
I have a doubt. When the first Copy statement is encountered, the temporary dataset T1 is created and contains the dynamic control card. When the subsequent Copy statement is encountered, it refers to CTL2
(which is CTL2CNTL), would it not try to create a dataset that has already been created during the first COPY statement, and hence throw a JCL error. Can you please explain this...
The first copy statement is creating the CTL2CNTL dataset ( as you can see from the clause TO)
The second copy statement is USING the CTL2 control card created in the first copy statement and creating OUT dataset( as you can see from the clause TO)
Basically the second copy statement is USING the control card created , so there is no question of creating the CTL2 dataset again in the second copy step.
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