Does RPG/CL, compiles to produce binary machine code?

195 pts.
Tags:
AS/400
iSeries
RPG
How can I see whats in an object, created after compiling a source of RPG/CL on an IBM iSeries?


Software/Hardware used:
ibm i series
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
If you want to know what a program uses/references use the DSPPGMREF command.
The Display Program References (DSPPGMREF) command provides a list of the system objects referred to by the specified programs

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • GregManzo
    Programs compile to a set of MI (Machine Interface) instructions. Ignoring for the moment the issues around horizontal vs vertical microcode, this is essentially the machine instruction set of an IBM iSeries (or System i or AS/400 or whatever name marketing come up with this year).
    The object nature of the box is such that data (*FILE objects) cannot be executed, and programs (*PGM objects) cannot be modified after compile, so it's immune to modification by viruses.
    You *could* see the binary contents of a *PGM object using service tools, but what's the point? Suffice to say that the executable will run and do exactly what it was told (not necessarily what you wanted).
    2,950 pointsBadges:
    report
  • ToddN2000
    Is there a reason for wanting to see the code? If it's to see the source behind the object there is a command that may help with a CL called RTVCLSRC. There is a reason it is hard if not impossible to get code from an object. If it was easy everyone would be stealing someone else's code and modifying the code for their own needs.
    131,605 pointsBadges:
    report
  • azohawk
    Can you clarify what you mean by "whats in an object"? For example, are you looking to find out the source, referenced objects, etc. I was thinking you wanted to know the referenced objects, the first two responses I see have a different understanding of what you are looking for.
    4,055 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: