View previous topic :: View next topic
|
Author |
Message |
trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
In Capg i faced below question
In a proc there are 10 step
From jCL i need to run only 5th and 6th step of PROC
I cannot edit PROC and cannot use IEBEDIT |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
If you truly cannot edit the PROC in any way, the only option I can think of is to make a copy of the original PROC and include only the 5th and 6th steps in it. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I wonder just who comes up with this kind of "requirement" . . .
One would hope that the need be met without strange little limiting rules. . . |
|
Back to top |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
As Terry has said, you could make a copy of the proc and add a JCLLIB statement pointing to the alternate library.
Or you could copy the proc to the jobcard using PROC/PEND and tailor it accordingly.
Or you could code a RESTART statement to start the job from the 5th step and then code COND.stepname=(0,LE) statements after the EXEC PROC for steps 7 - 10. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Or restart at step 5 as normal and use an override that will insert a JCL error into step 7 but will only produce an error when step 7 tries to start. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
This question (with slightly different specifics) comes up rather often here and in similar forums.
I just don't understand how it comes up so often with the "can't do this" can't do that" restrictions. . .
Might this be some kind of quiz or contest? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Quote: |
Might this be some kind of quiz or contest? |
Very true..
Basically in a interview, interviwer has only specific questions list to ask and if you don't answer towhat they exactly wants to hear then your are out of the quiz...
Also except 5th and 6th step keep a dummy file ovverride from JCL.[/quote] |
|
Back to top |
|
|
sureshpathi10
Active User
Joined: 03 May 2010 Posts: 154 Location: Kuala Lumpur
|
|
|
|
You're right Rohit...
Restart from 5th step and from step7 onwards override all step's COND parameter in a way that they won't execute. |
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
The sad part is questions are asked just for the sake as somet hing should be asked |
|
Back to top |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
Pandora-Box wrote: |
The sad part is questions are asked just for the sake as somet hing should be asked |
or may be as a test to analyze the how the person respond/react to such questions, and not exactly to hear the right/perfect answer. |
|
Back to top |
|
|
trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
Thank you all for your thoughts
Quote: |
or may be as a test to analyze the how the person respond/react to such questions, and not exactly to hear the right/perfect answer. |
Completly agreed with you TheMFKid
Quote: |
Might this be some kind of quiz or contest? |
Yah its was like rapid fire round.....
They were looking for answers provided by Nic and David. |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Restart in 5th step, do one of these:
-after 6th step completes, but before 7th step starts, pull the plug on the mainframe.
-Override a dataset into the 7th step that creates a duplicate file, JES will stop the job
-Override 7th's step steplibs to not have the required program in them, step will get S806 and stop the job (if program is not in joblib or linklist)
-Change the program in step 7 to fail with an S806
-Change program in step 6 to abend after it's done. Override the dataset dispositions to leave files as you want them. e.g. (new,catlg,catlg)
All of these could leave files in the wrong state, but that wasn't the question |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
Quote: |
after 6th step completes, but before 7th step starts, pull the plug on the mainframe. |
Best one... |
|
Back to top |
|
|
trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
Quote: |
after 6th step completes, but before 7th step starts, pull the plug on the mainframe. |
Really intresting........... |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Quote: |
-after 6th step completes, but before 7th step starts, pull the plug on the mainframe. |
Requires a high degree of hand/eye coordination. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Long ago (60's - 70's) there was a service named RINGBELL that when invoked would sound the alarm on the 360/370.
If the code to "ring the bell" was run before step 7, this might signal the operator to pull the plug . . . Quickly . . .
Never mind the stuff running everywhere else |
|
Back to top |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
Wasn't there also a 'fling printer cover open' command? Useful for when your nemesis has a habit of placing boxed of non-sequenced punch cards on any available printer top. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yup, if you issued a skip-to-end-of box, the cover would open when the box was empty.
This was also a deterrent to setting drinks on the cover |
|
Back to top |
|
|
Kayathri K
New User
Joined: 25 Sep 2013 Posts: 4 Location: India
|
|
|
|
Quote: |
I wonder just who comes up with this kind of "requirement" . . .
One would hope that the need be met without strange little limiting rules. . .
|
I agree that this is a strange requirement. But I have come across these questions mostly in interviews.
And the answer they expect is using RESTART and COND statements. |
|
Back to top |
|
|
|