|
----- Message from Scott Klement <midrange-l@xxxxxxxxxxxxxxxx> on
Fri, 30 Jun 2017 18:25:44 -0500 -----
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject:
Re: Checking return status from PASE
Michael,
I have the same experience. The User RC has always worked well for me,
but IBMers (and the docs) have told me that it is not reliable.
You did not say how you're going about running PASE?
But, I would suggest either running it through the STRQSH command, or by
using a tool like my (free) UNIXCMD tool. These use pipes to solve the"User
thread safety concerns.
-SK
On 6/30/2017 10:19 AM, MichaelQuigley@xxxxxxxxxx wrote:
I developed the habit years ago of calling QUSRJOBI and checking the
returnreturn code" to see if things finished correctly. However, the
documentation on QUSRJOBI states:
N/A; do not use: Thread safety is not applicable (N/A). The user
ofcode field is the most recent return code set by any thread within the
job. Many operating system functions run C code and change the value
bethe user return code. Changes to this field occur at times that cannot
ispredicted or controlled by user programming, even when the job is
single-threaded. To receive a value returned by a called program, it
thisbetter to provide a parameter to receive that value than to rely on
ajob-scoped user return code field.
Returning a parameter from PASE isn't really available. I've never had
prettyproblem with the "User return code", but the documentation above is
emphatic that I'm doing the wrong thing. Does anybody know of another
method to return the completion status of a script in PASE?
Thanks,
Michael Quigley
Computer Services
The Way International
www.TheWay.org
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.