AFAIK it would run as a batch job under z/OS 1.13. It was explained to me as 
Step 1 would be either an IBM program (IEBCOPY etc) or it might be an ISV 
program and the user wants to be able to determine which it was. The second 
step would just invoke the program which determines what the previous step 
executed. It's not running under a subsystem, just a plain multi-step batch 
run. Most of the things I can think of only relate to the currently executing 
step, not a prior step.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Elardus Engelbrecht
Sent: February-18-14 8:34 AM
To: [email protected]
Subject: Re: Determining prior program

Williams, Jeff wrote:

>My control blocks knowledge is rusty these days. 

Mine too. Not only rusty, but full of holes and missing paintwork. :-) This is 
because of OCO thing...

>Is there a way for a program executing in one step to determine via code what 
>the program name was of the preceding step ?

What z/OS level? Are your program running in a batch, TSO? Is it part of 
another system (DB2 for example)?

Is your program called by another program? If so, it could be very difficult 
for you to find out, unless the first program somehow store its own name so it 
can picked up by your program.

>preceding step ?

Jobstep?

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to