Previous Topic: Session PortabilityNext Topic: Format of the ADDPROF Macro


ADDPROF Macro

This macro is used to build user profiles in memory by copying all of the information from the specified profile to the user definition. Multiple ADDPROF macros can be used to build a single user definition. The user-specific information specified in the first profile is used to build the UINDEX control block. For every subsequent ADDPROF issued, only the session records are added or replaced in the user's definition in memory.

If the return code is a number other than zero (0), the profile was not found. Be sure to code the list so that it takes the appropriate action if this occurs.

Notes:

  1. This macro should be issued at the Get Profile call point (call point 20) of TPXUSNSF. If the macro is issued at any other call point, the results are unpredictable.
  2. This macro will modify the contents of registers 14, 15, 0, and 1.