Mainframe interview question on JCL and PROC.

All sort of Mainframes Interview Questions.
Post Reply
Raunak Singh
Registered Member
Posts: 11
Joined: Wed Mar 26, 2014 4:49 pm

Mainframe interview question on JCL and PROC.

Post by Raunak Singh »

Interview question:

A job is executing 2 procs in its two steps.
Jobstep J1 exec P1 proc
Jobstep J2 exec P2 proc

In Proc P1, I am creating a GDG A.B.C(+1). In Proc P2, I want to refer to the same version. So In P2 do I refer to (+1) version or (0) version. And why.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1896
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Mainframe interview question on JCL and PROC.

Post by Robert Sample »

This is specifically addressed in the JCL reference manual. The answer is that all references to a GDG generation in a single job are the same -- if you use (+1) in one step, you will use (+1) in all subsequent steps in that job.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Interview Questions.”