|
View previous topic :: View next topic
|
| Author |
Message |
ragsmainframe
New User
Joined: 29 Mar 2008 Posts: 1 Location: Chennai
|
|
|
|
query1:
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)?
Query2:
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,
Rags |
|
| Back to top |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
| Back to top |
|
 |
Anuj Dhawan
Superior Member

Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Hi,
If you would like to know the space used by some tape file, then below JCL can work for you:
| Code: |
//STEP010 EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//DD01 DD DSN=TAPE_FILE_NAME,
// DISP=SHR
//TOOLIN DD *
COUNT FROM(DD01)
/*
//* |
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.
For this
| Quote: |
| 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? |
try this
| Code: |
//COPYREC EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=YOUR.TAPE.DSN,DISP=SHR
//SORTOUT DD DSN=YOUR.DASD.DSN,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(10,15),RLSE)
//SYSIN DD *
OPTION COPY
/* |
BTW, topic has been discussed many times, please search the Forum; two such links are:
www.ibmmainframes.com/viewtopic.php?t=24241
www.ibmmainframes.com/viewtopic.php?t=7734 |
|
| Back to top |
|
 |
|
|