This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).
We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:
Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,
Post an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.
IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.
ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.
The following sections of the ILE RPG reference will be updated the next time the manual is refreshed:
- The "Subprocedure calculations" page: In the paragraph about point 1, it will mention that module-initialization values such as the PSDS are not updated
- The "INZ" page: It will be updated with more information about INZ(*USER), including a sample subprocedure to return the current profile
- PSDS: The "Current user profile name" will have a warning saying that the current user profile is only set once during module initialization so it is not correct if the current user profile has been swapped. It will have a pointer to the new section on the INZ page.
- IBM Power Systems Development
Thank you for the update and the workaround. I would greatly appreciate it if this issue and the workaround can be documented in the ILE manual at "Subprocedure Calculations" and the PSDS section and also explicitly mentioned it in the PSDS description of the current user field. This is unexpected behavior and it must be clear what the limitiations of the PSDS are with respect to the current user.
Instead of using the PSDS to determine the current user profile, you could add a small subprocedure to return the current user profile.
If you have a variable initialized to *USER within a subprocedure, it is calculated at the beginning of every call to the procedure.
dcl-proc get_current_usrprf export;
dcl-pi *n char(10);
end-pi;
dcl-s current_user char(10) inz(*user);
return current_user;
end-proc;
- IBM Power Systems Development