AS/400 HELP    

                                     "SPOOLPDF" 

                CREATE  .PDFs FROM AS/400 SPOOL FILES

                                                                        (non AFP)

 

SPOOLPDF displays a list of  spool files  with the options to display  and create a .PDF copy of  a file into the HFS

The list created is in descending date order.  APIs  QUSLSPL and QUSRSPLA are used to get the spool files.  SPOOLPDF  uses a freeware program from Germany  to actually create the .pdf.   I have included this  freeware program in the download.

You want to map a network drive to /QDLS/PDF as that is where the .PDFs are created.

SPOOLPDF will work at V4r4 and higher.

NOTE: you must  also download $CVTSPL.SAVF  and restore it to your AS/400   Follow the logic below for copying the .savf file to  your AS/400  and restoring it as library $CVTSPL     SPOOLPDF links to this library for the actual .pdf conversion.

 

   DOWNLOAD $CVTSPL.savf         

   DOWNLOAD SPOOLPDF.savf     

 

 

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

QUOTE    SITE     NAMEFMT   1

BIN

PUT       SPOOLPDF.SAVF

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

 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.

 

                                     

 

 

AS/400 INSTRUCTIONS:

ONE TIME ONLY.  SPOOLPDF is hard coded to write the .PDFs to /QDLS/PDF so you must create this folder as per the command below

   CRTDIR DIR(‘/QDLS/PDF’) DTAAUT(*RWX) OBJAUT(*ALL)

 

 

ADDLIBLE SPOOLPDF

SF