|
|
Archives of the TeradataForum
Message Posted: Sat, 18 Aug 2007 @ 08:36:40 GMT
Subj: | | Re: Recover VSN from header tape with ASF2 |
|
From: | | Geoffrey Rommel |
| I wonder if someone know how to read the header of the tape to extract the correct VSN of the tape? | |
Is this on MVS (z/OS)? If so, you can read the header by telling JES that this is an unlabeled tape. It will then read the labels as if they
were the first data set on the tape. Sample JCL below. Of course, the operator has to know which tape to mount.
If it's on Unix, I'm not sure. Try running dd on the raw device.
//* SAMPLE JCL -- FROM MEMORY -- PROBABLY NOT CORRECT!
//GENER EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=ANY.NAME.AT.ALL,
// UNIT=TAPE,LABEL=(1,NL), 'UNLABELED' TAPE
// VOL=????, TELL OPERATOR WHICH TAPE TO MOUNT
// DISP=SHR,
// DCB=(RECFM=F,LRECL=80)
//SYSUT2 DD SYSOUT=*
//SYSIN DD DUMMY
//*
| |