View previous topic :: View next topic
Author
Message
abhijit.nayak01 Active User Joined: 22 Mar 2009Posts: 161 Location: South Africa
Hi,
I need to copy a same file into 9 files in a single step. I was doing with IEBGENER but it is only copying to first systut2 files and other 8 files are blank.Can anybody help me out.The code is
Code:
//CREATE1 EXEC PGM=IEBGENER
//SYSUT1 DD DSN=TEST.SORT1,
// DISP=SHR
//SYSUT2 DD DSN=TEST.COPYA,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYB,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYC,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYD,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYF,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYG,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYH,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSUT2 DD DSN=TEST.COPYI,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// LRECL=157,
// RECFM=FB
//SYSPRINT DD SYSOUT=*
Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
IEBGENER is doing what you told him to do. Sort can be a choice, also.
Back to top
abhijit.nayak01 Active User Joined: 22 Mar 2009Posts: 161 Location: South Africa
can u plz suggest the code....
Back to top
PeterHolland Global Moderator Joined: 27 Oct 2009Posts: 2481 Location: Netherlands, Amstelveen
A possibility :
IDCAMS :
REPRO IFILE(IN1) OFILE(OUT1) COUNT(X1)
REPRO IFILE(IN1) OFILE(OUT2) COUNT(X2) SKIP(X1)
REPRO IFILE(IN1) OFILE(OUT3) COUNT(X3) SKIP(X1 + X2)
ETC.
Back to top
guptae Moderator Joined: 14 Oct 2005Posts: 1208 Location: Bangalore,India
Back to top
abhijit.nayak01 Active User Joined: 22 Mar 2009Posts: 161 Location: South Africa
Thanks it worked correctly.....
Back to top
Anuj Dhawan Superior Member Joined: 22 Apr 2006Posts: 6250 Location: Mumbai, India
Glad to hear, next time please search the forum first...
Back to top
Terry Heinze JCL Moderator Joined: 14 Jul 2008Posts: 1249 Location: Richfield, MN, USA
The MVS JCL Reference Manual would have told you immediately how JES treats duplicate ddnames.
Back to top
expat Global Moderator Joined: 14 Mar 2007Posts: 8797 Location: Welsh Wales
Terry Heinze wrote:
The MVS JCL Reference Manual would have told you immediately how JES treats duplicate ddnames.
Yes Terry, but that would involve the OP reading it for himself
Back to top
Please enable JavaScript!