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



Paul Nicolay wrote:
> 
> Hi,
> 
> You should actually never look at 254-263... but always use 358-367 as this 
> is the CURRENT userprofile.  Especially system and server jobs (like 
> ODBC/JDBC for example) very often start of as Q.... profiles, but swap the 
> profile to the one you provided as logon information.
> 

You can also get the current user profile by initializing a character
variable with INZ(*USER).

A warning: the current-user subfield in the PSDS is set during *INIT of
the RPG cycle.  If the current user profile might get changed while the
RPG program is running (or between calls if the program ends with LR
off, or it's a procedure in a NOMAIN module), the PSDS value would be
out of date.  If that's a possibility, the value should be obtained by
calling QUSRJOBI (or by calling a subprocedure with a non-STATIC
variable initialized to *USER).


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.