|
> My question is this: I would like to retrieve the name of the user profile > that is running the current program. I know that in CL, you simply use the > RTVUSRSPC command, and I am also aware that I can run this command using the > QCMDEXC API, but I don't believe this would place the results in an RPG > variable, in fact, I doubt it would even run (would it?). > No, it would not run. Generally QCMDEXC only works for commands that you can run from the command-line. > > Is there an API to retrieve the user profile within an RPGIV Program? > Rather than ask a question like "Is there an API to xxxxxx" please take the time to look in the Information center first. 1) go to http://www.iseries.ibm.com/infocenter (remember that URL, it's easy to remember) 2) After selecting your region & release, you'll get the Information Center. 3) In the navigation bar on the left select "Programming" then "APIs" then "API finder" (in V5R2... the process may vary slightly for older releases) 4) Under "Search by Descriptive Name" type "Retrieve User" then click GO! Alternately: 4) Select APIs by category. Select the category you're interested in. (in this case "Security APIs") then select the API from the list. The reason I'm explaining this is that you won't have to ask about every API, you can just look them up. That saves the rest of us having to look them up for you.
As an Amazon Associate we earn from qualifying purchases.
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.