× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



After thinking about this some more, even knowing that I am already in the
S36 environment won't help, as I want to issue the STRS36PRC anyway. I am
just going to use the Job Scheduler to run this CLP and not try to run it
with my nightly processes, which run in the S36 environment.

Thanks to all who responded.

midrange-l-bounces@xxxxxxxxxxxx wrote on 07/07/2008 01:17:45 PM:

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?
Thanks.

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:
http://publib.boulder.ibm.
com/infocenter/iseries/v5r4/topic/apis/WMAttrDesc.htm

For the key API to retrieve the Special Environment value:

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qwtrtvta.htm


Regards, Chuck
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone this email or any information contained in this email. If you have received this email in error, please advise the sender by replying to this email, and delete this email immediately. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Western Dental Services, Inc. Finally, the recipient should check this email and any attachments for the presence of viruses. Western Dental Services, Inc. accepts no liability for any damage caused by any virus transmitted by this email.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.