MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to refer the reletive number for the GDG, when job abend

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
baskarmanickam
Beginner


Joined: 20 Feb 2007
Posts: 2
Topics: 1

PostPosted: Fri Feb 23, 2007 1:08 am    Post subject: How to refer the reletive number for the GDG, when job abend Reply with quote

Hi team,

I have a question, that , a job having 4 steps, 1step is createing new generation as (+1) and 3 step referreing the same GDG as (+1) , let assume this scenario, the job abends after successfull run of 1 step, if I restart what will happen, and in this screnario how do we refer the generation ?

Many thanks in advance
Back to top
View user's profile Send private message
Arunprasad.K
Beginner


Joined: 18 Jan 2006
Posts: 18
Topics: 5
Location: Chennai, India

PostPosted: Fri Feb 23, 2007 1:35 am    Post subject: How to refer the reletive number for the GDG, when job abend Reply with quote

Use (0) when you restart the job.

Why???

Someone answer this!

I got the answer by simulating the abend and verified the result. Thanks.
Back to top
View user's profile Send private message Send e-mail
baskarmanickam
Beginner


Joined: 20 Feb 2007
Posts: 2
Topics: 1

PostPosted: Fri Feb 23, 2007 1:42 am    Post subject: Reply with quote

Thanks for your effort, Arun,
but i have one more question , when job abends, will it create the generation, or not ??
I heard, genertion will be created only at the end of the successful job.
Back to top
View user's profile Send private message
Arunprasad.K
Beginner


Joined: 18 Jan 2006
Posts: 18
Topics: 5
Location: Chennai, India

PostPosted: Fri Feb 23, 2007 3:20 am    Post subject: How to refer the reletive number for the GDG, when job abend Reply with quote

I checked with the below JCL.

This will abend in STEP02, still a new version is added to my GDG.

Code:

//STEP01   EXEC PGM=FILEAID                                             
//SYSPRINT DD  SYSOUT=*                                                 
//SYSLIST  DD  SYSOUT=*                                                 
//DD01     DD  *                                                       
DUMMY RECORD                                                           
//DD01O    DD  DSN=C0177W1.ARUN.TEST.GDG(+1),                           
//             DISP=(NEW,CATLG,DELETE),DCB=BLKSIZE=0,                   
//             SPACE=(TRK,(1,1),RLSE)                                   
//STEP02   EXEC PGM=SORT,PARM='RC16=ABE'                               
//SYSOUT   DD SYSOUT=*                                                 
//SORTIN   DD *                                                         
FRANK                                                                   
BITHEAD                                                                 
RAVI                                                                   
//SORTOUT  DD SYSOUT=*                                                 
//SYSIN    DD *                                                         
  OPTION NULLOUT=RC16                                                   
  SORT FIELDS=COPY                                                     
  INCLUDE COND=(1,6,CH,EQ,C'KOLUSU')                                   
/*                                                                     
//**********************************************************************
//STEP03   EXEC PGM=FILEAID                                             
//SYSPRINT DD  SYSOUT=*                                                 
//SYSLIST  DD  SYSOUT=*                                                 
//DD01     DD  DSN=C0177W1.ARUN.TEST.GDG(+1),DISP=SHR                   
//DD01O    DD  SYSOUT=*                                                 
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Feb 23, 2007 10:02 am    Post subject: Reply with quote

baskarmanickam, Arunprasad.K,

Please search before posting. Check this link which explains in detail about gdg

http://www.mvsforums.com/helpboards/viewtopic.php?t=1251&highlight=gdg


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group