ssrik New User Joined: 09 Jun 2006 Posts: 1
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.
shreevamsi Active User Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
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.
mailsri New User Joined: 04 Apr 2006 Posts: 13
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
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 -
001010 ( INCLUDE (DAVIN*.**))-
001020 INDD(TAPE) OUTDD(DISK) -
Bharanidharan New User Joined: 20 Jun 2005 Posts: 86 Location: Chennai, India
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.
All times are GMT + 6 Hours