need to check a GDG generation is present in catalog or not
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 6
- Joined: Wed Sep 05, 2007 5:28 pm
need to check a GDG generation is present in catalog or not
Hi every one,
I have a job JOB1 in which a GDG generation is created.This generation triggers an another job JOB2. In the JOB2 this generation is taken as backup and it is deleted.
the issue is.......................
JOB1 has been triggered twice.In the first run of JOB1 a generation is created and in the second run another generation is created. Each created generation triggers JOB2 .
In the first run of JOB2 the two generations which is created by the two runs of JOB1 has been taken backup and those two generations are deleted. Then for the second run there is no GDG generations to process. So the job is abending with JCLERROR.
So I want to check in the first step of JOB2 whether the GDG has generations or not .Could you plz tell me how can I solve this issue.............................................................
Regards,
Karthik
I have a job JOB1 in which a GDG generation is created.This generation triggers an another job JOB2. In the JOB2 this generation is taken as backup and it is deleted.
the issue is.......................
JOB1 has been triggered twice.In the first run of JOB1 a generation is created and in the second run another generation is created. Each created generation triggers JOB2 .
In the first run of JOB2 the two generations which is created by the two runs of JOB1 has been taken backup and those two generations are deleted. Then for the second run there is no GDG generations to process. So the job is abending with JCLERROR.
So I want to check in the first step of JOB2 whether the GDG has generations or not .Could you plz tell me how can I solve this issue.............................................................
Regards,
Karthik
-
- Member
- Posts: 2
- Joined: Fri Aug 25, 2006 12:15 pm
-
- Member
- Posts: 6
- Joined: Wed Sep 05, 2007 5:28 pm
Hi
Thanks for ur reply.
I tried the samething which u said in ur reply.Its working fine if the generation is not present But its not working if the GDG generation is present.
Its giving RC=12 if the generation is not present and also if it is present.
Even if the generation is present its skiiping the next steps.
Please help me in this issue.
Regards,
Karthik
Thanks for ur reply.
I tried the samething which u said in ur reply.Its working fine if the generation is not present But its not working if the GDG generation is present.
Its giving RC=12 if the generation is not present and also if it is present.
Even if the generation is present its skiiping the next steps.
Please help me in this issue.
Regards,
Karthik
-
- Member
- Posts: 6
- Joined: Wed Sep 05, 2007 5:28 pm
-
- Member
- Posts: 4
- Joined: Thu Jan 23, 2014 6:20 pm
Why are you tagging onto a topic that is over 7 years old? You shuld know that when you have a new query you should start a new topic.
To create a new version you need to specify the datasetname, generation nmber and version number in full. If, on the other hand, you mean create multiple generations then create them as +1, +2 etc and read up about relative generations in the relevant manuals.
To create a new version you need to specify the datasetname, generation nmber and version number in full. If, on the other hand, you mean create multiple generations then create them as +1, +2 etc and read up about relative generations in the relevant manuals.
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page