370 pts.
 How can view the source of QSYS commands
Like If I want to see source of 'WRKMBRPDM'(object type both cmd and *pgm) command what should I have to do?.

Software/Hardware used:
ASKED: July 18, 2008  1:19 PM
UPDATED: May 5, 2010  7:28 AM

Answer Wiki:
Hi, I think this question has already been answered <a href="http://itknowledgeexchange.techtarget.com/itanswers/how-can-i-see-the-source-code-for-command-created-in-iseries-system/">HERE</a> Regards, Martin Gilbert.
Last Wiki Answer Submitted:  July 18, 2008  2:34 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:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi Martin,

I installed command RTVCMDSRC on my AS/400 but this only retrieving CMD source not CLP and RPG soure related to this command.How to get them also.

 370 pts.

 

RTVCMDSRC is only for commands. Use the RTVCLSRC command to retrieve the source for a CL program; the caveat is that it only works for OPM programs, and not ILE. Also, the program must have been compiled with the ALWRTVSRC parameter of *YES, which is the default. And RTVCLSRC won’t work for commands supplied with the operating system.

There isn’t a system command to retrieve RPG source, or for other HLL programs. But there may be some third party utilities that do so, so I suggest a web search to see what you can find.

 4,275 pts.

 

Hi,

There are some third party tools around to retrieve RPG source. I’ve never seen any of these in action, so I can’t comment on how good they are. Some of these products were also available on the S/36 to retrieve RPGII source.

If you’re looking to retrieve the source of programs used by QSYS commands, I don’t think these tools will get you anywhere. I believe IBM have made it very difficult to get to the source of their programs.

Maybe other people have more experience of this, but I think that the IBM objects are written in MI (Machine Instructions), which aren’t anything like RPG (more like PL/1 from what I’ve seen).

Regards,

Martin Gilbert.

 23,625 pts.

 

Like If I want to see source of ‘WRKMBRPDM’(object type both cmd and *pgm) command what should I have to do?

The only reasonable answer is to write a check to IBM for whatever price they put on disclosing their source code to you. It will be a number larger than you will want to pay.

There are no tools or utilities freely available (nor even openly marketed) that will show you anything structured like the source for the WRKMBRPDM function.

Tom

 110,115 pts.