I am to take the bkup of a PDS in to another PDS,for this i am using following JCL:
//STEPNAME EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//MYDD1 DD DSN=PGM.PROD.JCLLIB.BACKUP,DISP=SHR
//MYDD2 DD DSN=PGM.JCLLIB.BACKUP.JAN09,
// DISP=(,CATLG,DELETE),UNIT=TEST,SPACE=(CYL,(30,3),RLSE)
//SYSIN DD *
COPY INDD=MYDD1,OUTDD=MYDD2
/*
//
//SYSPRINT DD SYSOUT=*
//MYDD1 DD DSN=PGM.PROD.JCLLIB.BACKUP,DISP=SHR
//MYDD2 DD DSN=PGM.JCLLIB.BACKUP.JAN09,
// DISP=(,CATLG,DELETE),UNIT=TEST,SPACE=(CYL,(30,3),RLSE)
//SYSIN DD *
COPY INDD=MYDD1,OUTDD=MYDD2
/*
//
After execution,when we try to open the o/p, it says "invalid record format".
Please advice.
The attributes of i/p pds is as follows:
General Data Current Allocation
Allocated tracks . : 12
Allocated extents . : 1
Maximum dir. blocks : 50
Organization . . . : PO Current Utilization
Record format . . . : FB Used tracks . . . . : 12
Record length . . . : 80 Used extents . . . : 1
Block size . . . . : 27920 Used dir. blocks . : 12
1st extent tracks . : 12 Number of members . : 68
Secondary tracks . : 10
Data set name type : PDS