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