AS/400 HELP    

                                       "PROFHIST" 

                           

 

PROFHIST keeps a log of user profile maintenance  activity (New, Changes and Deletions)  Two files are used.  File  PROFHIST is the summary file of who changed the profile and when. PROFHISTD is the actual details saved via the DSPUSRPRF to file.

PROFHIST was developed at V5.1   

 

PC INSTRUCTIONS:

Download "PROFHIST” to your PC.

Go to a DOS session and enter the following;

FTP SYSTEM                                        (system = your AS/400’s name or IP address)

Enter a valid user id and password

CD QGPL

LCD C:\DIRECTORY (directory= the directory on your pc where you downloaded “ PROFHIST.savf”

QUOTE    SITE     NAMEFMT   1

BIN

PUT       PROFHIST.SAVF

QUOTE   RCMD   RSTLIB   SAVLIB(PROFHIST)   DEV(*SAVF)   SAVF(QGPL/PROFHIST)

 Note:  If there is a security problem restoring all objects with the command above,  sign on to your as/400 as Qsecofr and run RSTLIB  from the command line.

   DOWNLOAD PROFHIST.savf                               

 

 

AS/400 INSTRUCTIONS:

SETUP

USE the command WRKREGINF  and page down to QIBM_QSY_CHG_PROFILE    Use option 8  to add the exit program  PROFLOG  in library  PROFHIST

Repeat  this action for  QIBM_QSY_CRT_PROFILE   and  QIBM_QSY_DLT_PROFILE  (format DLTP0200)

IMPORTANT:  once these exit points are activated program PROFLOG is called every time a profile is added, changed or deleted.  PROFLOG will need to access files PROFHIST PROFHISTL1 and PROFHISTD.

These three files must be available in the library list.  I recommend using WRKSYSVAL QSYSLIBL and adding PROFHIST library to the system library list. If not, you will get a halt message every time a profile is changed.  An alternative to changing the system library list is simply   move PROFHIST, PROFHISTl1 and PROFHISTD into a library that is currently in the system library list.  

 

 

 

ADDLIBLE PROFHIST      (if this library is not in the system library list)

CALL PROFHIST  

 

 

NOTE:  File PROFHISTD  can be viewed via DFU or QUERY