You can generate HTML information to be viewed using a browser from your online help.
In addition to creating help information for your command, you may want to create command documentation that can be viewed when not connected to an iSeries™ system, or printed. i5/OS™ lets you generate command documentation in Hyper Text Markup Language (HTML) source that can be displayed using an internet browser, or imported into many word processing programs. To do this, you can use the Generate Command Documentation (GENCMDDOC) command, specifying *HTML for the GENOPT (Generation Options) parameter. The command generates a file containing information retrieved from the command object (*CMD) you specify and any command help panel group (*PNLGRP) objects that already exist for the command.
To see what the HTML output looks like and how it matches the online help, compare the help for any command and the CL command documentation provided in the iSeries Information Center. IBM® builds the Information Center command documentation from the online command help.
GENCMDDOC CMD(MYLIB/MYCMD)
In this example, the command retrieves information from the command object named MYCMD in library MYLIB and generates HTML source into stream file MYLIB_MYCMD.HTML in the current working directory of the job. The generated stream file can be viewed in HTML source format using the Display File (DSPF) command, or in HTML browser format using any standard internet browser software, or by command.