Create a Spool File from an AS/400 HTML or Text Database File
From Support
The following commands can be used to write an AS/400 flat database file to a spool file entry for downloading, electronic delivery or for printing via the WinSpool/400 Electronic Forms software as HTML.
After the spool file has been written, the WinSpool/400 Electronic Forms software can automatically download and print the HTML form using the "HTF" output type.
/*************************************************************************************/ /* Sample OVRPRTF used to spool an invoice HTML file to a spool file entry. */ /*************************************************************************************/
OVRPRTF FILE(QSYSPRT) TOFILE(*FILE) DEVTYPE(*SCS) PAGESIZE(*N 378) OUTQ(QGPL/HTML) FORMTYPE(HPLASER1) USRDTA(ORDER001 USRDFNDTA(*NONE) SPLFNAME(INVOICE)
/*************************************************************************************/ /* Write the AS/400 database file to a spool file entry. */ /*************************************************************************************/
CPYF FROMFILE(QTEMP/HTMLMSG) TOFILE(QSYSPRT) FROMMBR(*FIRST)
