AS/400 HELP    

                                  "DSPMODUSG" 

           DISPLAY / PRINT  ‘MODULE WHERE USED’

 

DSPMODUSG   displays / prints a list of where a module is used.

Taken from MIDRANGE  COMPUTING JULY 1998

 BY DOUG PENCE and RON HAWKINS

This copy was tested on V4r5 and V3r7    See Note1 below.

 Library DSPMODUSG was saved at V3R2

 

 

PC INSTRUCTIONS:

Download "DSPMODUSG” 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 “dspmodusg.savf”

QUOTE    SITE     NAMEFMT   1

BIN

PUT       DSPMODUSG.SAVF

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

 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 dspmodusg.savf                                

 

 

AS/400 INSTRUCTIONS:

ADDLIBLE DSPMODUSG

DSPMODUSG

 

NOTE1

To get DSPMODUSG to run on your AS/400 you may need  to change a line of code in program MOD001RG.   DSPMODUSG uses API  QBNLPGMI   format PGML0100

IBM tends to increase the length of API formats  with new releases (not all).   My first attempt at getting it to work on my work As/400 at vr45 bombed out but it worked at home on a v3r7 As/400.   So…

I changed the line of code in MOD001RG from the original 508 to  2000.  V4R5 is at 1070  V4R2 is at  508

            D ModListDs                   2000                          

 NOTE:  Be prepared to wait a while if use *libl as the library qualifier.