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
 

 

how to copy one month old data from tape drive

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
j_rymbei

New User


Joined: 22 Aug 2006
Posts: 17
Location: India Kolkata

PostPosted: Tue Aug 22, 2006 10:50 am    Post subject: how to copy one month old data from tape drive
Reply with quote

Hi,
I came across a new concern where I need to copy one month old data
from tape drive. Can anyone give a sample JCL or is there any other
way. I don't have much idea of tape drives and how they work.

Thanks,
JRY
Back to top
View user's profile Send private message

shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Tue Aug 22, 2006 11:28 am    Post subject: Re. how to copy one month old data from tape drive
Reply with quote

hi j_rymbei,

Where exactly you need to copy the tape dataset.... If you wan to copy a dataset from tape to DASD?? Just use simple sort with option=copY in SYSIN and the output dataset is where you wan the dataset.(dasd).

This is what you wan???

~Vamsi
Back to top
View user's profile Send private message
j_rymbei

New User


Joined: 22 Aug 2006
Posts: 17
Location: India Kolkata

PostPosted: Tue Aug 22, 2006 11:55 am    Post subject: Re: how to copy one month old data from tape drive
Reply with quote

exactly...thankx..can you send me any sample JCL
Back to top
View user's profile Send private message
annujp

New User


Joined: 31 Aug 2005
Posts: 39
Location: St Paul,MN

PostPosted: Tue Aug 22, 2006 12:29 pm    Post subject:
Reply with quote

Hi...this mite help icon_biggrin.gif
Code:

//JS020   EXEC PGM=SYNCSORT                                 
//SORTMSG   DD SYSOUT=*                                                                   
//SORTIN    DD DISP=SHR,DSN=[b]<<Tape dataset name>>[/b]
//SORTOUT   DD DSN=[b]<<Dataset name in DASD>>[/b],       
//             DISP=(NEW,CATLG,DELETE),                     
//             UNIT=(,20),                                 
//             SPACE=(CYL,(10,10),RLSE),                 
//             DCB=(RECFM=FB,LRECL=516,BLKSIZE=0),                         
//SYSIN     DD *                                           
    SORT FIELDS=COPY                       
 END                                                       
//*                             


U can use this JCL.
Since the dataset is in Tape, the number of records might be large. So its better to calculate the number of records and allocate the number of cylinders in DASD accordingly. Also dont forget to change the LRECL and RECFM.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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