PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

CMD Documention Made easy

View previous topic View next topic Go down

CMD Documention Made easy

Post  maran on Sun Aug 12, 2012 9:52 pm

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!!!
avatar
maran
Admin

Posts : 442
Join date : 2009-07-24

View user profile http://pmsinformationsystem.forumotion.net

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum