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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


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