Question

  Asked: Apr 6 2008   3:27 PM GMT
  Asked by: Harish.kuolkhere


How can i see the source code for COMMAND created in iseries system.


IMP, iSeries development, iSeries

I want to know how i can see the source code for the command created in system

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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 Retrieve Command Definition API QCDRCMDD or the Generate Command Documentation command GENCMDDOC with GENOPT(*SERVICE).

Bruce Vining
http://www.brucevining.com/
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Sloopy  |   Apr 14 2008  2:06PM GMT

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