nff2jf43ijwvycju3kvjhlqfikcnwrpgg5scgsb2@yahoo.com [hercules-390]
2017-08-14 15:45:54 UTC
I'm trying to copy a sequential dataset (with reclen=132) into a member in a different source code PDS (reclen=80). (It contains the LISTPDS assembler code, and the only way I could use the Zoc terminal emulator to get the file onto the mainframe from the PC was into a sequential dataset, not a member).
The sequential dataset is HERC01.TEST.CNTLTMP and the member I'd like to create is HERC01.TEST.CNTL(LISTASM)
I've been fiddling around with IEBCOPY, IEBGENER and SORT, but am unable to make the copy happen.
Here's what I've tried:
1 IEBCOPY
//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=HERC01.TEST.CNTLTMP
//OUT0 DD DISP=SHR,DSN=HERC01.TEST.CNTL
//SYSIN DD *
COPYOPER COPY OUTDD=OUT0
INDD=INP0
SELECT MEMBER=(,LISTASM)
/*
This gives an RC=0008, "INP0 not an IEBCOPY unloaded dataset".
2. IEBGENER
//COPYMBR EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=HERC01.TEST.CNTLTMP,DISP=SHR
//SYSUT2 DD DSN=HERC01.TEST.CNTL(LISTASM),DISP=SHR
/*
With the above JCL, I get an RC=0012, "CONFLICTING DCB PARAMETERS". I'm guessing this has something to do with the different RECLENs, but am not sure.
3. SORT
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=HERC01.TEST.CNTLTMP,DISP=SHR
//SORTOUT DD DSN=HERC01.TEST.CNTL(LISTASM),DISP=SHR
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1,80)
/*
This attempt gives an RC=0016 (getting worse!) with a message:
IER005A - STATEMENT DEFINER ERROR
IER010A - NO S/M CARD
Can anyone point in the right direction to copy a sequential dataset to a new member in a source dataset?
Thanks
Pete
The sequential dataset is HERC01.TEST.CNTLTMP and the member I'd like to create is HERC01.TEST.CNTL(LISTASM)
I've been fiddling around with IEBCOPY, IEBGENER and SORT, but am unable to make the copy happen.
Here's what I've tried:
1 IEBCOPY
//STEP010I EXEC PGM=IEBCOPY
//VAMBYPAS DD DUMMY
//SYSPRINT DD SYSOUT=*
//INP0 DD DISP=SHR,DSN=HERC01.TEST.CNTLTMP
//OUT0 DD DISP=SHR,DSN=HERC01.TEST.CNTL
//SYSIN DD *
COPYOPER COPY OUTDD=OUT0
INDD=INP0
SELECT MEMBER=(,LISTASM)
/*
This gives an RC=0008, "INP0 not an IEBCOPY unloaded dataset".
2. IEBGENER
//COPYMBR EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=HERC01.TEST.CNTLTMP,DISP=SHR
//SYSUT2 DD DSN=HERC01.TEST.CNTL(LISTASM),DISP=SHR
/*
With the above JCL, I get an RC=0012, "CONFLICTING DCB PARAMETERS". I'm guessing this has something to do with the different RECLENs, but am not sure.
3. SORT
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=HERC01.TEST.CNTLTMP,DISP=SHR
//SORTOUT DD DSN=HERC01.TEST.CNTL(LISTASM),DISP=SHR
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1,80)
/*
This attempt gives an RC=0016 (getting worse!) with a message:
IER005A - STATEMENT DEFINER ERROR
IER010A - NO S/M CARD
Can anyone point in the right direction to copy a sequential dataset to a new member in a source dataset?
Thanks
Pete