CMD Documention Made easy
Page 1 of 1
CMD Documention Made easy
GENCMDDOC helps you to do documentation on CMDs
GENCMDDOC can produce documentation in HTML or UIM. If you specify GENOPT(*UIM), GENCMDDOC generates a skeleton UIM member from a command object. You can add explanatory text with your favorite text editor and create a help panel group for the command. If you specify GENOPT(*HTML), GENCMDDOC creates an HTML file from the command object and the help text in the panel group object.
You can write the generated source code to an IFS or a database file, but you must use the IFS syntax in either case.
In the following example, a skeletal help text member of UIM source is generated in member CPYTOTST of source physical file QPNLSRC in library UTILITY from the CPYTOTST command object in library UTILITY.
GENCMDDOC CMD(UTILITY/CPYTOTST) +
TODIR('/QSYS.LIB/UTILITY.LIB/QPNLSRC.FILE') +
TOSTMF('CPYTOTST.MBR') REPLACE(*NO) GENOPT(*UIM)
At this point, you may want to run GENCMDDOC again, but this time specify GENOPT(*HTML) to generate a full HTML file from the command definition and the panel group. The following example places the HTML in file cpytotst.html in directory /home/pms of the IFS.
GENCMDDOC CMD(UTILITY/CPYTOTST) +
TODIR('/home/pms') +
TOSTMF('cpytotst.html') +
GENOPT(*HTML)
Happy Documenting!!!
GENCMDDOC can produce documentation in HTML or UIM. If you specify GENOPT(*UIM), GENCMDDOC generates a skeleton UIM member from a command object. You can add explanatory text with your favorite text editor and create a help panel group for the command. If you specify GENOPT(*HTML), GENCMDDOC creates an HTML file from the command object and the help text in the panel group object.
You can write the generated source code to an IFS or a database file, but you must use the IFS syntax in either case.
In the following example, a skeletal help text member of UIM source is generated in member CPYTOTST of source physical file QPNLSRC in library UTILITY from the CPYTOTST command object in library UTILITY.
GENCMDDOC CMD(UTILITY/CPYTOTST) +
TODIR('/QSYS.LIB/UTILITY.LIB/QPNLSRC.FILE') +
TOSTMF('CPYTOTST.MBR') REPLACE(*NO) GENOPT(*UIM)
At this point, you may want to run GENCMDDOC again, but this time specify GENOPT(*HTML) to generate a full HTML file from the command definition and the panel group. The following example places the HTML in file cpytotst.html in directory /home/pms of the IFS.
GENCMDDOC CMD(UTILITY/CPYTOTST) +
TODIR('/home/pms') +
TOSTMF('cpytotst.html') +
GENOPT(*HTML)
Happy Documenting!!!
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|