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

TAPE datasets info & backup


IBM Mainframe Forums -> FAQ & Basics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ragsmainframe

New User


Joined: 29 Mar 2008
Posts: 1
Location: Chennai

PostPosted: Fri Apr 18, 2008 10:08 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Apr 18, 2008 11:44 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Apr 18, 2008 12:49 pm
Reply with quote

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
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 -> FAQ & Basics

 


Similar Topics
Topic Forum Replies
No new posts Deleting a Tape file JCL & VSAM 14
No new posts Data Backup suggestions DB2 5
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts in REXX,how to get sysprt info CLIST & REXX 9
Search our Forums:

Back to Top