how to find input parameters??

30 pts.
Tags:
#RPG #parameters
Hello, I thought there was a native AS400 command that would tell you both the number of input parameters and type of parameters, for an RPG program. I do not have the source, and the object was not compiled with a debug option. Does anyone have a way of finding this out? Thanks in advance.
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

There may not be a way unfortunately… This was discussed in this FORUM a while back with no real answer. they mentioned DSPPGMREF but that only shows the objects (files) not the parameters. I poked around a bit and could not find anything.  You may need to contact the source where you got the program from as to what parameters are needed if it’s not in their documentation. 

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.
  • TheRealRaven
    I don't know of a way to determine number and type of parameters. The number of parameters can be relatively easy, but parameters generally don't have a "type". All that is passed is a memory address, and the "type" is totally up to declarations in the receiving program. The memory may even be declared in multiple ways with different types and lengths.
    36,035 pointsBadges:
    report
  • ToddN2000
    Your only other possibility is to back tack it. How is it currently being run? Check for a CL or a menu where it may be calling this program and you can hopefully find the parameter info there.

    134,720 pointsBadges:
    report
  • jet64163
    Thanks everyone for the suggestions.  It looks like it going to be a process of trial and error.  I ended up forcing the program into a dump which will give me all the defined fields.  Maybe I will luck in to something.

    Thanks again!
    30 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: