View previous topic :: View next topic |
Author |
Message |
yadav2005 Intermediate

Joined: 10 Jan 2005 Posts: 348 Topics: 144
|
Posted: Thu Sep 09, 2010 5:52 am Post subject: interview questions |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Sep 09, 2010 6:16 am Post subject: |
|
|
answer to both your questions is IEBEDIT (Edit Job Stream) Program _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
expat Intermediate

Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Fri Sep 10, 2010 1:03 am Post subject: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Fri Sep 10, 2010 8:31 am Post subject: |
|
|
For (b) "Restart-parameter" can also be in one of the choices. _________________ Regards,
Anuj |
|
Back to top |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Fri Sep 10, 2010 8:43 am Post subject: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Mon Sep 13, 2010 3:49 am Post subject: |
|
|
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 |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon Sep 13, 2010 12:58 pm Post subject: |
|
|
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 |
|
 |
Bill Dennis Advanced

Joined: 03 Dec 2002 Posts: 579 Topics: 1 Location: Iowa, USA
|
Posted: Mon Sep 13, 2010 1:24 pm Post subject: |
|
|
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 |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon Sep 13, 2010 1:51 pm Post subject: |
|
|
Bill,
Thanks for correcting. I always get confused with COND. _________________ Regards,
Diba |
|
Back to top |
|
 |
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Mon Sep 13, 2010 2:05 pm Post subject: |
|
|
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 |
|
 |
rlilley Beginner
Joined: 05 Apr 2010 Posts: 19 Topics: 3
|
Posted: Mon Sep 13, 2010 2:22 pm Post subject: |
|
|
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 |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
Posted: Mon Sep 13, 2010 4:14 pm Post subject: |
|
|
rlilley,
I guess IF THEN will not be of any use in this case. _________________ Regards,
Diba |
|
Back to top |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Tue Sep 14, 2010 3:45 am Post subject: |
|
|
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.. (even though only for this execution). So, do I (we?) answer what is being asked? _________________ Regards,
Anuj |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Tue Sep 14, 2010 5:39 am Post subject: |
|
|
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 |
|
 |
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Tue Sep 14, 2010 7:03 am Post subject: |
|
|
dbzTHEdinosauer wrote: | without changing the proc contents is a rather absurd restriction. | Agree. Period. _________________ Regards,
Anuj |
|
Back to top |
|
 |
|
|