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 a latest generation of GDG to a tape data set.

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

New User


Joined: 09 Jan 2007
Posts: 1
Location: hyderabad

PostPosted: Tue Jan 09, 2007 10:48 am    Post subject: How to copy a latest generation of GDG to a tape data set.
Reply with quote

Hi

Is there any Jcl code to copy a latest generation of GDG to a tape data set.

And above tape dataset to DASD Dataset

Thanks
VIJAY KUMAR
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Tue Jan 09, 2007 12:06 pm    Post subject:
Reply with quote

Hi there,

You can use sort for this.

Code:
//STEP001  EXEC PGM=SORT                                             
//SORTLIB  DD DSN=SYS1.SORTLIB,DISP=SHR                               
//SORTWK01 DD SPACE=(CYL,(100)),UNIT=DISK                             
//SYSIN    DD  *                                                     
   OPTION COPY                                                       
/*                                                                   
//SORTIN   DD  DSN=TBH2.DECE001.DATA(+0),DISP=SHR                     
//SORTOUT  DD  DSN=TBH2.SORTCHNG.SORTOUT.DATA,                       
//             UNIT=TAPE,SPACE=(TRK,(1,1),RLSE),DISP=(,CATLG,DELETE),
//             DCB=(LRECL=145,BLKSIZE=145,RECFM=FB)                   
//SYSOUT   DD SYSOUT=*                                               
//STATOUT DD SYSOUT=*                                                 
//SYSUDUMP DD SYSOUT=*                                               
//*                                                                   
//STEP002  EXEC PGM=SORT                                             
//SORTLIB  DD DSN=SYS1.SORTLIB,DISP=SHR                               
//SORTWK01 DD SPACE=(CYL,(100)),UNIT=DISK                             
//SYSIN    DD  *                                                     
   OPTION COPY                                                       
/*                                                                   
//SORTIN   DD  DSN=TBH2.SORTCHNG.SORTOUT.DATA,DISP=SHR               
//SORTOUT  DD  DSN=TBH2.SORTCHN1.SORTOUT.DATA,                       
//             UNIT=DISK,SPACE=(TRK,(1,1),RLSE),DISP=(,CATLG,DELETE),
//             DCB=(LRECL=145,BLKSIZE=145,RECFM=FB)                   
//SYSOUT   DD SYSOUT=*                                               
//STATOUT DD SYSOUT=*                                                 
//SYSUDUMP DD SYSOUT=*                                               
//*

Here STEP001 will copy the latest version to tape dataset & STEP002 will copy tape dataset to disk dataset
Hope it will helpful
Back to top
View user's profile Send private message
TizMe

New User


Joined: 05 Jan 2006
Posts: 72

PostPosted: Thu Jan 11, 2007 8:44 am    Post subject:
Reply with quote

Quote:
DCB=(LRECL=145,BLKSIZE=145,RECFM=FB)
As a storage admin, I'd shoot you for coding BLKSIZE=145....

With BLKSIZE=145 you will only get 72 records per track.
By using BLKSIZE=0, you will get 386 records per track.
(assuming 3390).

Similar wastage is experienced on tapes as well

Also CPU utilisation and runtime will be inceased as well.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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