
Custom Search
//STEP001 EXEC PGM=IDCAMS//INPUT DD DSN=FILE.ON.TAPE,// DISP=SHR//OUTPUT DD DSN=FILE.ON.DASD,// DISP=(NEW,CATLG,DELETE),// UNIT=SYSDA,// DCB=(RECFM=FB,LRECL=200,BLKSIZE=0),// SPACE=(CYL,(500,500),RLSE)//SYSIN DD *REPRO INFILE(INPUT) OUTFILE(OUTPUT) -/*
//COPY1 EXEC PGM=IEBGENER//SYSUT1 DD DSN=FILE.ON.TAPE,// DISP=SHR//SYSUT2 DD DSN=FILE.ON.DASD,// DISP=(NEW,CATLG,DELETE)//SYSPRINT DD SYSOUT=*//SYSIN DD *
//STEP001 EXEC PGM=IDCAMS//INPUT DD DSN=FILE.ON.TAPE,DISP=OLD,// VOL=SER=VOL001//OUTPUT DD DSN=FILE.ON.DASD,// DISP=(NEW,CATLG,DELETE),// UNIT=SYSDA,// DCB=(RECFM=FB,LRECL=200,BLKSIZE=0),// SPACE=(CYL,(500,500),RLSE)//SYSIN DD *REPRO INFILE(INPUT) OUTFILE(OUTPUT) -/*
//COPY1 EXEC PGM=IEBGENER//SYSUT1 DD DSN=FILE.ON.TAPE,// UNIT=TAPE,// VOL=SER=VOL001,// DISP=OLD//SYSUT2 DD DSN=FILE.ON.DASD,// DISP=(NEW,CATLG,DELETE),//SYSPRINT DD SYSOUT=*//SYSIN DD *
Click the +1 button below to share it with your friends and colleagues
Who's onlineThere are currently 0 users and 20 guests online.
|
Comments
Try This
//GENERA EXEC PGM=IEBGENER
//SYSUT1 DD DSN=DATASET.ON.TAPE,
// DISP=SHR
//SYSUT2 DD DSN=DATASET.ON.SYSDA,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SYSUT1
alternative to try this
As suggested earlier, use your sort product to copy files. Many systems now invoke the sort when a simple copy is detected by IEBGENER.
Using the sort or IEBGENER should not require specification of the output dcb info. It will use the same dcb as the input dataset.
I am getting maxcc=12
my tape dataset is of variable block format.
when i am using IDCAMS utility to copy it to a flat file, i am not able to do that.
pls tell me how to use IDCAMS when tape is of VB format.
regards,
gaurav
Copying file(s) - D37
How big is your dataset?
Have you looked up the cause of the D37? If not you need to do so.
Suggest you use your sort product rather than IDCAMS. Specify COPY rather than SORT.
Try using the sort and if there is a problem, post the jcl and sort control statements as well as the diagnostic info generated by the run.
Got an error
Hi,
I am trying to copy a huge tape to DASD. I got an error for UNSUCCESSFUL SORT - D37. Could anyone help. I have already tried putting DATACLAS=HUGE !!
Thanks, Prateek
Answer to your question
Try to put UNIT=(SYSDA,4) ... 4 means that the dataset will allocate on 4 volumes.
Yves Roy
Thanks Roy. But still i got
Thanks Roy.
But still i got RC 12.
Thanku,M
Post new comment