Page 1 of 1

copy tape data to Disk

PostPosted: Fri Apr 06, 2012 4:43 am
by dn2012
Hi,

Good day to you..

I have a dataset in tape. I created a new GDG. I want to copy the tape dataset to Disk.
If you have sample jcl, please share .

//S01 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//INDDX DD DISP=OLD,DSN=TEST.TAPE.COPY2 <=INPUT VIRTUAL TAPE
//OUTDDX DD DSN=TEST.TAPE.TODISK(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=8000,
// SPACE=(TRK,(5,4,1),RLSE)
Command ===>
//SYSUT3 DD UNIT=SYSDA,SPACE=(CYL,1)
//SYSUT4 DD UNIT=SYSDA,SPACE=(CYL,1)
//SYSIN DD *
COPY INDD=INDDX,OUTDD=OUTDDX
/*

But I am getting error on this

thx

Re: copy tape data to Disk

PostPosted: Fri Apr 06, 2012 5:10 am
by steve-myers
You do not define PDS datasets as members of a GDG. Full stop.

Re: copy tape data to Disk

PostPosted: Fri Apr 06, 2012 7:13 am
by Robert Sample
But I am getting error on this
Your are starting to get tiresome. This statement is pretty much meaningless -- did you get a JCL error? a system abend? an error message in the output of the utility? Without such details, NOBODY can help you.

Futhermore, you need to read this excerpt from the manual to understand what Mr. Myers is telling you:
3.10.1 Data Set Organization of Generation Data Sets


Generation data sets can be sequential, PDSs, or direct. If you use PDSs as generation data sets, you should reference them using absolute data set names rather than relative names.

Example: When referencing a generation data set, it is common to use relative naming, as in A.B.C(0), A.B.C(+1), or A.B.C(-1). You cannot use relative naming with a PDS. You can refer to a specific member of a PDS that is a generation data set. Use absolute names such as A.B.C.G0005V00(member) when referring to a member of a PDS.

Restriction: Generation data sets cannot be PDSEs, UNIX files, or VSAM data sets.

Warning: if you attempt to continue this thread, it will be locked. You have been told, clearly, that what you want to do is not possible the way you are writing your JCL. There is no need to continue this discussion.

Re: copy tape data to Disk

PostPosted: Fri Apr 06, 2012 7:16 am
by dick scherrer
Hello,

How many times are you going to ask the "same" question?

Do you have an idea of what you really want to accomplish?

If this continues, all of these topics will be locked to prevent further waste of people's time and effort.

Also, the worst waste of time here is posting "it didn't work". If you won't post the problem(s), we won't be able to help.

d