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 ro refer GDG in jcl

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

New User


Joined: 31 Mar 2005
Posts: 25
Location: bangalore

PostPosted: Sat Sep 10, 2005 8:13 pm    Post subject: how ro refer GDG in jcl
Reply with quote

hi

how to refer GDG number in the jcl.

how to move one gdg version to another gdg version


by
Back to top
View user's profile Send private message

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Sun Sep 11, 2005 2:36 am    Post subject: Re: how ro refer GDG in jcl
Reply with quote

raju_rangam wrote:

how to refer GDG number in the jcl.

- Reletive References:
Code:

//STEPXXXX EXEC PGM=MYPGM
//SYSUT1 DD DSN=HLQ.MY.GDG(0),DISP=SHR <= Current Generation
...
//STEPXXXX EXEC PGM=MYPGM
//SYSUT1 DD DSN=HLQ.MY.GDG(-1),DISP=SHR <= Prev. Generation
...
//STEPXXXX EXEC PGM=MYPGM
//SYSUT1 DD DSN=HLQ.MY.GDG(-2),DISP=SHR <= Prev. Prev. Generation
...
//STEPXXXX EXEC PGM=MYPGM2
//SYSUT2 DD DSN=HLQ.MY.GDG(+1), <= New Generation
//        DISP=(,CATLG,DELETE),UNIT=SYSDA,SPACE=(...)


- Explicit References:
Code:

//STEPXXXX EXEC PGM=MYPGM
//SYSUT1 DD DSN=HLQ.MY.GDG.G0001V00,DISP=SHR


raju_rangam wrote:

how to move one gdg version to another gdg version

Code:

TSO RENAME 'HLQ.MY.GDG.G0001V00' 'HLQ.MY.GDG.G0001V01'

Code:

//STEPXXXX EXEC PGM=IEBGENER
//SYSUT1 DD DSN=HLQ.MY.GDG.G0001V00,DISP=SHR
//SYSUT2 DD DSN=HLQ.MY.GDG.G0001V01,DISP=(,CATLG,DELETE),
//        UNIT=SYSDA,SPACE=(...)
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY

Code:

//STEPXXXX EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
  ALTER 'HLQ.MY.GDG.G0001V00' NEWNAME('HLQ.MY.GDG.G0001V01')
/*
//*
Back to top
View user's profile Send private message
prasanth_thavva

New User


Joined: 28 Jul 2005
Posts: 86
Location: Chennai

PostPosted: Mon Sep 12, 2005 4:06 pm    Post subject: refering gdgs
Reply with quote

hi,
1> relative number 0,-1,-2
2> absolute number GnnnnVmm
IF any wrong plz correct me
bye
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 how to use refer to other step samiuddinarif JCL & VSAM 8 Sat Jun 26, 2010 2:24 am
No new posts Which manual to refer for INZUTILB rockish DB2 1 Wed Feb 10, 2010 9:29 pm
No new posts What does UNIT=DELM refer Josephine Jenitha I JCL & VSAM 2 Fri May 15, 2009 3:30 pm
No new posts How to refer unique dataset where las... Nehanisha Pandey JCL & VSAM 14 Mon Mar 30, 2009 6:12 pm
No new posts Refer the current generation in a sub... abhay pratap singh JCL & VSAM 3 Sat Feb 21, 2009 5:39 pm

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