<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-us" xml:lang="en-us"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="security" content="public" /> <meta name="Robots" content="index,follow" /> <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> <meta name="DC.Type" content="task" /> <meta name="DC.Title" content="Generate HTML source for command documentation" /> <meta name="abstract" content="You can generate HTML information to be viewed using a browser from your online help." /> <meta name="description" content="You can generate HTML information to be viewed using a browser from your online help." /> <meta name="DC.subject" content="control language (CL), command documentation, CL, defining, description, command documentation, definition, GENCMDDOC (Generate Command Documentation) command, CL program, Generate Command Documentation (GENCMDDOC) command, CL program, creating, steps, HTML (Hyper Text Markup Language), Hyper Text Markup Language (HTML)" /> <meta name="keywords" content="control language (CL), command documentation, CL, defining, description, command documentation, definition, GENCMDDOC (Generate Command Documentation) command, CL program, Generate Command Documentation (GENCMDDOC) command, CL program, creating, steps, HTML (Hyper Text Markup Language), Hyper Text Markup Language (HTML)" /> <meta name="DC.Relation" scheme="URI" content="doccmd.htm" /> <meta name="DC.Relation" scheme="URI" content="../cl/gencmddoc.htm" /> <meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" /> <meta name="DC.Format" content="XHTML" /> <meta name="DC.Identifier" content="clhtml" /> <meta name="DC.Language" content="en-us" /> <!-- All rights reserved. Licensed Materials Property of IBM --> <!-- US Government Users Restricted Rights --> <!-- Use, duplication or disclosure restricted by --> <!-- GSA ADP Schedule Contract with IBM Corp. --> <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> <link rel="stylesheet" type="text/css" href="./ic.css" /> <title>Generate HTML source for command documentation</title> </head> <body id="clhtml"><a name="clhtml"><!-- --></a> <!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script> <h1 class="topictitle1">Generate HTML source for command documentation</h1> <div><p>You can generate HTML information to be viewed using a browser from your online help.</p> <div class="section"> <p>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 <span class="cmdname">Generate Command Documentation (GENCMDDOC)</span> 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.</p> <p>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<sup>®</sup> builds the Information Center command documentation from the online command help.</p> <div class="p">The following is an example of using the <span class="cmdname">Generate Command Documentation (GENCMDDOC)</span> command to generate HTML source: <pre>GENCMDDOC CMD(MYLIB/MYCMD) </pre> </div> <p>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 <span class="cmdname">Display File (DSPF)</span> command, or in HTML browser format using any standard internet browser software, or by command.</p> </div> </div> <div> <div class="familylinks"> <div class="parentlink"><strong>Parent topic:</strong> <a href="doccmd.htm" title="You can create online help and HTML command description information for commands that you create.">Document commands</a></div> </div> <div class="relinfo"><strong>Related information</strong><br /> <div><a href="../cl/gencmddoc.htm">Generate Command Documentation (GENCMDDOC) command</a></div> </div> </div> </body> </html>