I need to know if the program has been executed from batch job or if it is being executed from a TSO terminal session. The batch job might be PGM=IKJEFT01. I do not require any RACF information.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Tony Harminc Sent: Friday, June 30, 2017 2:51 PM To: [email protected] Subject: Re: Assembler program On 30 June 2017 at 12:52, PINION, RICHARD W. <[email protected]> wrote: > I need a program or snippet of code that determines if the program is being > executed from a TSO user or a batch job. These are not mutually exclusive; you need to specify what you want in a bit more detail. Are you interested in whether there's a terminal attached? Whether the program is a TSO command processor? Jobid like JOB12345 vs TSU12345 (or the more compressed new formats)? TSO segment info in the RACF profile? There are more, I'm sure. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN FIRST TENNESSEE Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this e-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this e-mail message from your computer. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
