ragsmainframe New User Joined: 29 Mar 2008 Posts: 1 Location: Chennai
1) When i try to get the info about the tape datset by using line command 'I' . It's giving message as GDG base or TAPE entry. It is an tape datset. So please let me know how to find tape datset info(record length & block size)?
2) I want to take the back up of the Tape datset to PS dataset. For that what are the parameters do i need to give in the DD statement other than the DSN=tapedataset name?
Thanks in Advance.....
Thanks & Regards,
expat Global Moderator Joined: 14 Mar 2007 Posts: 8631 Location: Back in jolly old England
The TMS (Tape Management Software) e.g. CA1, TLMS, RMM will have that info.
If the dataset is catalogued you only need the Dsn, and by the way, a tape dataset is a PS dataset
Anuj Dhawan Senior Member Joined: 22 Apr 2006 Posts: 6258 Location: Mumbai, India
If you would like to know the space used by some tape file, then below JCL can work for you:
//STEP010 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//DD01 DD DSN=TAPE_FILE_NAME,
//TOOLIN DD *
Check the TOOLMSG & DFSMSG after completion of the JOB. One of them'll give you the LRECL & BLOCKSIZE of tape file. Perhaps that info can be of your use.
I want to take the back up of the Tape datset to PS dataset. For that what are the parameters do i need to give in the DD statement other than the DSN=tapedataset name?
//COPYREC EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=YOUR.TAPE.DSN,DISP=SHR
//SORTOUT DD DSN=YOUR.DASD.DSN,
//SYSIN DD *
BTW, topic has been discussed many times, please search the Forum; two such links are:
All times are GMT + 6 Hours