AS/400 user profiles hard coded in programs

750 pts.
Tags:
AS 400
Is there a way to find profiles that are hard coded into programs?


Software/Hardware used:
V7R1
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Depending on what you are searching for the only way to find a “hardcoded” user is to scan the source. This is not to bad if you use PDM. Go to the source library and put a 25 in the first source member, then shift + F1 to auto fill all members. Hit enter and for the search enter  single quote, single quote, name, single quote,single quote. Then hit enter again and it should find all the hardcoded occurrences. Do this for each source code library.

This just popped in, if they are hardcoded as a table defined with the program the perform the search without the quotes. In cases like this it’s best to have the list of users in a file or table for reference. That way the is no recompile necessary if a change is needed.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • TheRealRaven
    Define "hard coded". If you set a variable to hold a profile name and then use the variable in place of the name, is that "hard coded"?

    Too many ways to reference any object. For the most part, only data-container and program objects are even attempted to be tracked.
    35,040 pointsBadges:
    report
  • TheRealRaven
    The "Answer" generally refers to locating most 'hard coded' references to single specific profiles. In order to see if any (and which) profiles are 'hard coded', that process would need to be repeated for all user profiles in the system, i.e., each source member in each library (or IFS source file) would need to be separately scanned for each profile.

    Also, such scans would only find specific strings without an indication whether a hit was for a "user profile" or for something else with the same spelling. Even substrings might show as false positives. E.g., a search for 'QSYSOPR' could locate references to the QSYSOPR *USRPRF object as well as to the QSYSOPR *MSGQ, or even to the string "QSYSOPR" in message text or a comment.
    35,040 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: