that's work.
Thanks
//EXTPROC PROC
//STEP1 EXEC PGM=IEFBR14
//SQADB512 DD DSN=&DSNAME,DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(5,3,1)),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PO)
//STEP2 EXEC PGM=IDCAMS,REGION=512K
//SYSPRINT DD SYSOUT=*
// PEND
//FINAL EXEC EXTPROC,DSNAME=TSSDN.DEMO.TEMP02
//STEP2.SYSIN DD *
DEFINE GDG( -
NAME(TSSDN.GDBD.TEMP02)-
LIMIT(7) NOEMPTY SCRATCH)
/*
//
*************************************************************************************
I wonder I need to add following step, what should I do?
// EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=TSSDN.DATA.COPY2
//SYSUT2 DD DISP=(NEW,CATLG),UNIT=TAPE,DSN=TSSDN.DATA.COPY3
//*
May be inside the procedure I will write as:
//STEP3 // EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
After the PEND and following:
//FINAL EXEC.............................
//STEP2.SYSIN DD *
....
...
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=TSSDN.DATA.COPY2
//SYSUT2 DD DISP=(NEW,CATLG),UNIT=TAPE,DSN=TSSDN.DATA.COPY3
I tried but not work? Why ? Is not same as step 2?
thanks