+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: WRKDIRE User ID and User profile discrepency

  1. #1

    Default WRKDIRE User ID and User profile discrepency

    A simple answer may be to truncate the &USER variable into an 8-character variable.
    Code

  2. #2
    gary.shipp@s3t.co.uk Guest

    Default WRKDIRE User ID and User profile discrepency

    I was hoping to be able to do it without having to resort to something like that but... The operators are supposed to limit user profiles to 8 characters but this isn't always the case, such as with some old profiles.

  3. #3

    Default WRKDIRE User ID and User profile discrepency

    I suppose your limited to the 8 if you have to use SNDDST. Regarding the operators creating user profiles, there is an exit point to the CRTUSRPRF command that you could employ to enforce your 8-character limit.

  4. #4

    Default WRKDIRE User ID and User profile discrepency

    The 8-character limit is a misnomer. The User ID portion of the User ID/Address combination can be any value. After you assign the user profile name & email address to the directory entry, obtain the email address by querying the tables qatmsmtpa and qaokp01a for that user profile.

  5. #5
    gary.shipp@s3t.co.uk Guest

    Default WRKDIRE User ID and User profile discrepency

    The problem I'm having is identifying the correct user id for the the user profile currently signed on. The Snddst needs to be sent to the user id, but the only information I have is the user profile

  6. #6
    Guest.Visitor Guest

    Default WRKDIRE User ID and User profile discrepency

    Since you've already established the profiles longer than eight characters, could you make the ID the profile dropping the last two characters (assuming you have not exceeded ten characters)? At least, the sort would be simple. You may want to make it a policy for the operator's that accounts are to be no longer than eight characters using naming standards unique to the user. We use the employee number proceeded with a letter (same letter for all accounts). I know many companies include the last name in the account and when the last name changes either a new account needs to be created or the user must continue using their previous name.

  7. #7

    Default WRKDIRE User ID and User profile discrepency

    Could you create a file, say in QTEMP, using the DSPDIRE command to a *OUTFILE, then use the value in the WOSDDEN field found in the resulting file rather than the value in the WODUSRP field?

  8. #8

    Default WRKDIRE User ID and User profile discrepency

    qatmsmtpa, qaokp01a. Join them by userid & address and you can get what you want for any as/400 user profile---the email address or USER ID/ADDRESS.

  9. #9

    Default WRKDIRE User ID and User profile discrepency

    If user profile is 10 characters (ABCDEABCDE), enter first 8 (ABCDEABC) characters into WRKDIRE's User ID. If duplicate found change last character to a digit. In SNDDST, use "Internet Recipient" parameter: e.g. ABCDEABCDE@mycompany.com instead of the "Recipient:User ID Address" parameter. Now all you have to do is use RTVJOBA to get User ID (i.e. profile)

  10. #10

    Default WRKDIRE User ID and User profile discrepency

    I wound up writing a CL program that displays the directory entries for the specified user profile to an output file, then reads the output file. It returns the user/address combination that you need for SNDDST.
    Code

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Copy User Profile
    By cwscholbe@dstsystems.com in forum Programming
    Replies: 10
    Last Post: 06-06-2001, 05:27 AM
  2. AUT parm on user profile
    By Guest.Visitor in forum Security
    Replies: 25
    Last Post: 06-27-2000, 11:32 AM
  3. User profile
    By Guest.Visitor in forum Application Software
    Replies: 3
    Last Post: 12-15-1999, 09:31 AM
  4. User Profile in CL
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 07-29-1999, 12:49 PM
  5. user profile
    By Guest.Visitor in forum Security
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts