Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1190
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 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us