× 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.



Rich Duzenbury wrote:
>>You can get the current user from the RPG program's status data
>>structure positions 358 through 367.  Job initiator is in positions 254
>>through 263.
> Ahh, that's the ticket.  I was using the data in 254-263.  

Be careful using that ... RPG only updates the job, user ID and many
other fields when the program is initially loaded. The only way to
refresh the PSDS is to end the program *INLR=*ON and return to the
caller. Then call the program again. (so sayeth Bob Cozzi on
http://archive.midrange.com/rpg400-l/200208/msg00509.html).

So if the current user changes while the program is running, the PSDS
won't necessarily be correct.

That's why I always like to use the QUSRJOBI api.

david

-- 
David Gibbs
david@xxxxxxxxxxxx

Receipt of this message does not grant you permission to send me
Unsolicited Commercial Email


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.