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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 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
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


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