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 Need info with DBRC recovery ashek15 IMS DB/DC 0 Mon Jan 23, 2017 6:43 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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