copy tape data to Disk



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

copy tape data to Disk

Postby dn2012 » Fri Apr 06, 2012 4:43 am

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
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: copy tape data to Disk

Postby steve-myers » Fri Apr 06, 2012 5:10 am

You do not define PDS datasets as members of a GDG. Full stop.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: copy tape data to Disk

Postby Robert Sample » Fri Apr 06, 2012 7:13 am

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: copy tape data to Disk

Postby dick scherrer » Fri Apr 06, 2012 7:16 am

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
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post