Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

TAPE datasets info & backup

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics
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    Post subject: TAPE datasets info & backup
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: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 18, 2008 11:44 am    Post subject:
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

Senior Member


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

PostPosted: Fri Apr 18, 2008 12:49 pm    Post subject:
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:

http://www.ibmmainframes.com/viewtopic.php?t=24241
http://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    IBMMAINFRAMES.com Support Forums -> FAQ & Off Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts Need info on EIBCPOSN value in IBM FA... subratarec CICS 11 Wed Jul 12, 2017 3:45 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us