Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to view/copy/edit a dataset in a tape

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ssrik

New User


Joined: 09 Jun 2006
Posts: 1

PostPosted: Fri Jun 09, 2006 8:08 am    Post subject: How to view/copy/edit a dataset in a tape
Reply with quote

Hi,
I have a dataset which has unit as cartridge - UNIT=CART
I want to copy this to a test file and edit. I am not able to do it using 3.3 or p;h;g option.
Back to top
View user's profile Send private message

shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Jun 09, 2006 12:14 pm    Post subject:
Reply with quote

Hi,

You can't View or Edit a TAPE dataset.

U need to copy to DASD first to view and edit.

U can use an Utility like ICEMAN, IEBGENER to copy and use in your test environment.

~Vamsi
Back to top
View user's profile Send private message
mailsri

New User


Joined: 04 Apr 2006
Posts: 13

PostPosted: Fri Jun 09, 2006 1:07 pm    Post subject: Re: How to view/copy/edit a dataset in a tape
Reply with quote

Hi

Here is the JCL that you need to code for copying the contents from the Tape to the DASD first..and then only you can do copy and editing stuffs.

000100 //IBMUSERQ JOB REGION=0M,NOTIFY=&SYSUID,CLASS=A
000200 //*
000300 //******* THIS JOB WILL RESTORE BACKED UP DATASETS ***
000400 //STEP1 EXEC PGM=ADRDSSU
000500 //TAPE DD UNIT=370,DSN=(DAVIN.BKP),
000510 // LABEL=(1,SL),VOL=SER=POLBKP,DISP=SHR
000600 //DISK DD UNIT=3390,VOL=SER=DAVP9A,DISP=SHR
000700 //SYSPRINT DD SYSOUT=*
000800 //SYSIN DD *
000900 RESTORE -
001000 DATASET
001010 ( INCLUDE (DAVIN*.**))-
001020 INDD(TAPE) OUTDD(DISK) -
001030 REPLACE-
001040 CATALOG
001050 /*
001060 //
Back to top
View user's profile Send private message
Bharanidharan

New User


Joined: 20 Jun 2005
Posts: 86
Location: Chennai, India

PostPosted: Fri Jun 09, 2006 3:06 pm    Post subject: Re: How to view/copy/edit a dataset in a tape
Reply with quote

The retrieval depends on how the dataset was taped. If it was taped using GVEXPORT, then you need to use GVRESTORE to bring the tape into DASD, since ADRDSSU or IEBGENER will merely create a dump of the GVEXPORTed dataset and would create trouble while editing.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us