Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Run time proc edit

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Run time proc edit
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 User


Joined: 01 Sep 2015
Posts: 228
Location: Denmark

PostPosted: Fri Jun 08, 2018 5:57 pm    Post subject:
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: 667
Location: The Universe

PostPosted: Fri Jun 08, 2018 5:58 pm    Post subject:
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: 8400
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 08, 2018 5:59 pm    Post subject:
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    Post subject:
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: 667
Location: The Universe

PostPosted: Fri Jun 08, 2018 6:29 pm    Post subject:
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 User


Joined: 01 Sep 2015
Posts: 228
Location: Denmark

PostPosted: Sat Jun 09, 2018 6:06 pm    Post subject:
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: 8725
Location: Welsh Wales

PostPosted: Mon Jun 11, 2018 11:47 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ISPF 3.4 edit of a ps file, disp use... Carrie Da Silva TSO/ISPF 3 Fri Sep 21, 2018 3:01 am
No new posts Purge CICS transaction after a time l... vasanthz CICS 14 Thu Aug 30, 2018 4:34 am
No new posts How to control the elapsed time for a... Philippe JCL & VSAM 12 Thu Aug 09, 2018 5:54 pm
No new posts Can we call QMF proc from REXX ? batu544 CLIST & REXX 6 Fri Aug 03, 2018 11:03 am
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us