190 pts.
 How can i see the source code for COMMAND created in iseries system.
I want to know how i can see the source code for the command created in system

Software/Hardware used:
ASKED: April 6, 2008  3:27 PM
UPDATED: April 14, 2008  2:06 PM

Answer Wiki:
Hi, You can use the DSPCMD command to see where the source for a command was when the command was created. Most of the System commands do not come supplied with the source. Regards, Martin Gilbert. -------------------------------------------------------------------------- If the source is not on your system you can get a XML definition of the command which should be sufficient to understand how the parameters are defined. This XML view of the command can be accessed with either the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/qcdrcmdd.htm">Retrieve Command Definition API QCDRCMDD</a> or the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/gencmddoc.htm">Generate Command Documentation command GENCMDDOC</a> with GENOPT(*SERVICE). Bruce Vining <a href="http://www.brucevining.com/">http://www.brucevining.com/</a>
Last Wiki Answer Submitted:  April 12, 2008  6:39 pm  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Make a G**gle search for RTVCMDSRC – you will find there is more than one version of that utility around. I use it myself, and it creates a perfect QCMDSRC member for even the most complex IBM-supplied commands.

If you are interested in writing commands, it’s particularly instructive to get IBM command sources and see how they do things.

Sloopy

 2,195 pts.