IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Run time proc edit


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Jun 08, 2018 5:42 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Fri Jun 08, 2018 5:57 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Jun 08, 2018 5:58 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 08, 2018 5:59 pm
Reply with quote

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
View user's profile Send private message
Niki

Active User


Joined: 20 Sep 2008
Posts: 106
Location: Bangalore

PostPosted: Fri Jun 08, 2018 6:00 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Fri Jun 08, 2018 6:29 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Sat Jun 09, 2018 6:06 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 11, 2018 11:47 am
Reply with quote

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 icon_eek.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Query on edit primary command CLIST & REXX 5
Search our Forums:

Back to Top