Export a spool to a HTM file
![]() |
Cette page a été mise à jour le 14
novembre 2020. Contact ![]() |
![]() |
Target:
convert a text spool to a HTM file. this tool uses the XML Toolkit for IBM i (5733-XT2)
Characteristics :
RPG , CL and JAVA under QSH.
What will not do :
Do not convert AFPDS, GDDM or IPDS
spools. Because most spools are text only.
Do not take care of PRTF attributes
such as underline : heart of this tool is CPYFRMSPLF.
Sample :
spool.txt the original text of the spool after CPYFROMSPLF
splf2htm.xml spool data converted to unicode utf-8 using xml formatting
splf2htm.xsl the xslt style sheet used to transform xml to htm
SPlf2htm.htm the htm file to push to users. it's an off-line htm page (works without internet)
Versionning
last version : The SaveFiles
SPLF2PDF uses also
It is mandatory to use the same CCSID for the job that runs SPLF2HTM and for the job that created the spool, otherwise the convertion to UTF-8 unicode will return erroneous characters
the easiest way to use SPLF2HTM is from the WRKSPLF screen : copy &
paste the file name (5 attributes) to the command, then F4
Work with All Spooled Files
|
press F4, change the title, change the XSLT file if you have your own (the logo is inside the xslt transformer)
Transform a spool to HTM file (SPLF2HTM)
|
Transform a spool to HTM file (SPLF2HTM)
|
After command run, You can retrieve the HTM in the IFS :
Work with Object Links
Directory . . . . : /home/jpltools Type options, press Enter. 2=Edit 3=Copy 4=Remove 5=Display 7=Rename 8=Display attributes 11=Change current directory ... Opt Object link Type Attribute Text splf2htm.htm STMF splf2htm.xml STMF splf2htm.xsl STMF XmlDebugMSI.msi STMF Bottom Parameters or command ===> F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel F17=Position to F22=Display entire field F23=More options |
Copy it to a PC folder, for example with Navigator, and open it. That's all.
Resources
the splf2htm.xsl file is in the savf IFSOBJ in the JPLTOOLS library.
This savf contains also XmlDebugMsi.Msi. it is a tool to help verifying
the XSL file (updating a XSL is not so easy). This tool is a windows app
which use is to
the tool save its properties in registry at HKEY_CURRENT_USER\SOFTWARE\VB and VBA Program Settings\JPLTools\xmldebug.exe