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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm


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