View previous topic :: View next topic
|
Author |
Message |
Sagar_mainframe
New User
Joined: 07 Jun 2008 Posts: 34 Location: Harrisburg, Pennsylvania
|
|
|
|
I have File 1 with LRECL = 80 ,
File 2 with LRECL = 05 ,
File 3 with LRECL = 80
I tried following code :
Code: |
//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DISP=SHR,DSN=INPUT.FILE1 /*LRECL OF 80 & has 2 records
//IN2 DD DISP=SHR,DSN=INPUT.FILE2 /*LRECL OF 05 & has 1 record
//IN2 DD DISP=SHR,DSN=INPUT.FILE3 /*LRECL OF 80 & has 4 records
//OUT DD DSN=NEW.FILE,DISP=(MOD,DELETE),...
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) TO(OUT) USING(CTL1)
COPY FROM(IN3) TO(OUT)
/*
//CTL1CNTL DD *
INREC OVERLAY=(80:X)
/*
|
But the above code is giving only 4 records from File 3 in the OUT file.
Could you please suggest some modifications in the above code?
Thanks, |
|
Back to top |
|
|
Sagar_mainframe
New User
Joined: 07 Jun 2008 Posts: 34 Location: Harrisburg, Pennsylvania
|
|
|
|
Sorry ..I used
Code: |
//CTL1CNTL DD *
INREC OVERLAY=(80:X) |
in the above code |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why is IN2 repeated with a different dsn?
I don't understand how the job created the output you describe.
It may help if you post the informational messages generated by the run. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Follow on:
Might the output contain the 2 records of file 1 and the one record of file 2 times - for a total of 4 records in the output? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Sagar,
Show the complete JES log for your run. |
|
Back to top |
|
|
|