LOGON/LOGOFF are one and the same TSO command. Within the running TMP of a foreground TSO address space, LOGON will actually terminate (ie. LOGOFF) that instance of the TMP (and address space) and queue the LOGON command to create a new foreground TSO address space.
Batch address spaces aren't created via a LOGON system command. LOGON/LOGOFF is treated as "terminate" by the TMP. Even if the LOGON were queued, the online parts required to create a new foreground TSO address space do not exist in the batch address space. === > Date: Wed, 19 Jun 2013 19:22:33 -0700 > From: [email protected] > Subject: Re: Run TSO batch as different user? > To: [email protected] > > > Why would you expect that to work? > > Because IKJEFT01 accepts TSO commands, and LOGON is the TSO command that I > would use if I were in a TSO session and wanted to run as a different user. > > Why do you ask? > > Charles > > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Shmuel Metz (Seymour J.) > Sent: Wednesday, June 19, 2013 5:35 PM > To: [email protected] > Subject: Re: Run TSO batch as different user? > > In <[email protected]>, on 06/19/2013 > at 02:21 PM, Charles Mills <[email protected]> said: > > >Can I get IKJEFT01 to run under a different userid, a userid for which > >I have the password? > > Yes. > > >How? > > The same as any other program; the userid is on the JOB statement. If you > don't have surrogate authority then you also need the password. > > >I tried adding > >LOGON otherid/password > > Why would you expect that to work? > > ---------------------------------------------------------------------- > 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
