MKirkpatrick@xxxxxxxxxxxxxxxxx wrote:
I have a CLP that starts the S36 environment via the STRS36PRC command. I want to now place this CLP into a S36 procedure. This causes a problem as this CLP will now try to STRS36PRC while already in the S36 environment. I have reviewed the RTVJOBA command but find
no attribute that tells me my environment. Any suggestions on how to
determine (in the CLP) if I am executing in the S36 environment?

The "Special environment" field for job information as retrieved using both the QUSRJOBI API [JOBI0600 Format] and QWTRTVTA API [Format RTVT0100 key 1908].

However I seem to recall that the STRS36PRC command, when invoked while a S/36 procedure is _running_ [not just because the S/36EE is active] will actually fail with an escape message that can be monitored. If so, the error could be monitored, and from that, inferred the request is not allowed; i.e. the command itself has done the work to determine the condition.? Maybe this is not relevant, because perhaps instead it was meant the CLP does STRS36; thus the desire is to prevent the CLP from sending the job to the S36EE menu?

For the definition of the Special Environment field:

For the key API to retrieve the Special Environment value:

Regards, Chuck

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page