View previous topic :: View next topic
|
Author |
Message |
Niki
Active User
Joined: 20 Sep 2008 Posts: 106 Location: Bangalore
|
|
|
|
I am trying to run Proc which I need to change through REXX in previous step.like :
job:
Step 1 : Rexx to change the proc
step 2 : Run the changed proc
what is the possibility for the same.
Is there any utility where i can run the steps in sysin card.?
I want to change the proc run time . |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
I assume that by 'proc' you mean a JCL procedure.
You don't run a 'proc', you run a job.
You can run anything in SYSIN as a job, if you copy the contents of SYSIN to an internal reader - if the data is a complete job. IEBGENER would be my choise for utility, keeing in mind that the input libref is SYSUT1.
Wouldnt it be easier to have an in-stream procedure? Procedures are expanded when the JCL is read, so you cannot alter anything in the running job.
Seems to me what you could do is to read the JCL and write the modified JCL to an internal reader DD. The modification could be inserting an in-stream procedure.
What are you trying to accomplish? |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
No. The whole concept is flawed. Once a job has started, the JCL used to run the job cannot be altered. Full stop. End of story. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
what is the possibility for the same. |
The possibility is ZERO. Once submitted, the JCL in a job CANNOT be changed. When a job is submitted, it goes through the converter / interpreter component of JES. This converts the JCL into a series of control blocks and the JCL is not used after that -- the control blocks are used instead. Hence, you cannot change a single line of a submitted job and expect that change to be in your job. You can change JCL and submit a separate job, but you cannot change JCL of an executing job. |
|
Back to top |
|
|
Niki
Active User
Joined: 20 Sep 2008 Posts: 106 Location: Bangalore
|
|
|
|
Thank you Jensen,
So I need to submit two jobs right ?
Fist one will run the rexx and in the second step of the job the second job will be triggered. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
Niki wrote: |
Thank you Jensen,
So I need to submit two jobs right ?
Fist one will run the rexx and in the second step of the job the second job will be triggered. |
Yes, that approach should work. |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
Yes 2 jobs.
Sample of INTRDR, assuming that job 2 is in the stack:
Code: |
address tso "execio" queued() "diskw intrdr (finis)"
. . .
//INTRDR DD SYSOUT=(A,INTRDR) |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Maybe if you explained what you want to achieve - in a clear and concise way - the hundred plus years of experience could point you in the right direction.
It's great having an idea of what you want to do, but it doesn't mean that it's the right idea |
|
Back to top |
|
|
|