IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts SET PATH in View DDL DB2 2
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top