AS/400 HELP    

                                       "VTOC" 

                                Print a list of the files in a library

                             (a condensed view from DSPFD)

 

VTOC   (remember the SYSTEM/36) is a simple little one line list  program that uses the *outfile from DSPFD.  You can use the list to see what files need to be reorganized.

 

VTOC was developed at 5.1  recompiled and saved /  tested on a  3.7 machine.  It should work at all levels.  (See note below)

PC INSTRUCTIONS:

Download "VTOC” 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 “vtoc.savf”

QUOTE    SITE     NAMEFMT   1

BIN

PUT       VTOC.SAVF

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

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

 

 

AS/400 INSTRUCTIONS:

ADDLIBLE VTOC

VTOC

NOTE:   If  VTOC bombs out (IBM may have added new fields in your OS release),  simply recompile VTOC asap while the *outfile from DSPFD  is still in QTEMP. The name of the work file is also named VTOC.   (first rename the VTOC savf file in QGPL otherwise the compiler will use this file)

HINT:  After VTOC completes do a DSPFFD on   file VTOC in QTEMP.  The amount of information is interesting  You may want to change VTOC to suit your needs.  I wish IBM would provide the *outfile  to more  commands .