Joel:

Just write a simple little CLLE module that looks like this:

PGM PARM(&USER)
DCL &USER *CHAR 10
RTVUSRPRF USRPRF(*CURRENT) RTNUSRPRF(&USER)
RETURN
ENDPGM

Compile it with CRTCLMOD, and bind that *MODULE into your CBLLE program, and CALL it, when you need the current user profile.

HTH,

Mark S. Waterbury

> On 6/23/2016 3:52 PM, Stone, Joel wrote:
I have seen two methods:


1) Pass it into the pgm as a parm

2) Use the PSDS and force an error as described in http://www.itjungle.com/fhg/fhg050113-story02.html


Is there a better, cleaner, more intuitive method?


Thanks




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