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 

interview questions
Goto page 1, 2  Next
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
yadav2005
Intermediate


Joined: 10 Jan 2005
Posts: 348
Topics: 144

PostPosted: Thu Sep 09, 2010 5:52 am    Post subject: interview questions Reply with quote

Members,

Recently I attended an interview and I was asked qustions:

There is a production Proc which has 10 steps and
a) we have to run step 2 and step 8 of the proc only without changing the proc contents

Again one more question
b) after executing the third step of the Proc , they do not want to run the rest of the steps of the Proc

Can anybody help me with the answers
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Sep 09, 2010 6:16 am    Post subject: Reply with quote

answer to both your questions is IEBEDIT (Edit Job Stream) Program
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Fri Sep 10, 2010 1:03 am    Post subject: Reply with quote

Or of course the good old COND= solution should Dicks suggestion be outlawed.
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Fri Sep 10, 2010 8:31 am    Post subject: Reply with quote

For (b) "Restart-parameter" can also be in one of the choices.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Fri Sep 10, 2010 8:43 am    Post subject: Reply with quote

IEBEDIT for selecting steps within a PROC? I think it's not possible.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Mon Sep 13, 2010 3:49 am    Post subject: Reply with quote

Yes, that's correct Bill. You can use IEBEDIT to create a data set containing a selection of jobs or job steps but then what should be the answer for the original questions!? I scratch my head! (Is the question worded correctly?)
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Sep 13, 2010 12:58 pm    Post subject: Reply with quote

Here is my guess. RESTART from STEP2 and skip other steps by specifying COND.

Code:

//JOBNAME JOB RESTART=STEP00.STEP2,other jobcard parms
//*
//STEP00  EXEC PROC=PROCNAME,COND.STEP3=(0,LE),
//                  COND.STEP4=(0,LE),
//...
//                  COND.STEP7=(0,LE),
//                  COND.STEP9=(0,LE),
//                  COND.STEP10=(0,LE),
//                  other overrides


PS: Changed '0,LT,STEP2' to '0,LE' as per Bill's correction
_________________
Regards,
Diba


Last edited by Dibakar on Mon Sep 13, 2010 1:50 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Mon Sep 13, 2010 1:24 pm    Post subject: Reply with quote

Diba,

You should use COND=(0,LE) since a COND CODE 0 from STEP2 would still allow other steps to execute (zero is not less than zero).
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Sep 13, 2010 1:51 pm    Post subject: Reply with quote

Bill,

Thanks for correcting. I always get confused with COND.
_________________
Regards,
Diba
Back to top
View user's profile Send private message Send e-mail
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Mon Sep 13, 2010 2:05 pm    Post subject: Reply with quote

Anuj Dhawan wrote:
Yes, that's correct Bill. You can use IEBEDIT to create a data set containing a selection of jobs or job steps but then what should be the answer for the original questions!? I scratch my head! (Is the question worded correctly?)


Yes, the question is posted correctly - I have seen similar probably on another board. All sorts of answers came up including the use of IEBEDIT which was probably the favourite.

My favourite it to copy he procedure and hack out the unwanted steps.
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
rlilley
Beginner


Joined: 05 Apr 2010
Posts: 19
Topics: 3

PostPosted: Mon Sep 13, 2010 2:22 pm    Post subject: Reply with quote

If I may make a suggestion.

Have a look at the JCL IF THEN and ENDIF, these are easier to follow. I have been using the COND= since the 80's and they are second nature, but, when I get confused I use the IF and ENDIF.
Back to top
View user's profile Send private message
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Mon Sep 13, 2010 4:14 pm    Post subject: Reply with quote

rlilley,

I guess IF THEN will not be of any use in this case.
_________________
Regards,
Diba
Back to top
View user's profile Send private message Send e-mail
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Tue Sep 14, 2010 3:45 am    Post subject: Reply with quote

Nic Clouston wrote:
My favourite it to copy he procedure and hack out the unwanted steps.
If I were an Operator and was asked to do this - yes, I agree with you I could have made the PROC "in-stream" and there you go. BUT original question says (emphasis added by me):
Quote:
There is a production Proc which has 10 steps and
a) we have to run step 2 and step 8 of the proc only without changing the proc contents
And now by removing steps, I've actually changed the PROC..Neutral (even though only for this execution). So, do I (we?) answer what is being asked?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Sep 14, 2010 5:39 am    Post subject: Reply with quote

without changing the proc contents is a rather absurd restriction.

using iebedit (if it works),
using overrides to add cond code checks
viewing, stripping and submitting

non of these things change the proc's contents
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Tue Sep 14, 2010 7:03 am    Post subject: Reply with quote

dbzTHEdinosauer wrote:
without changing the proc contents is a rather absurd restriction.
Agree. Period.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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