Pass parameter RPG/400

195 pts.
Tags:
AS/400
RPG Program
RPG/400
Hi, is there any solution to pass numeric parameter to the RPG program from the command line?

Answer Wiki

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

Hi,

Yes you can pass numeric parameters to an RPG program from the command line. You need to give the parameter in hexadecimal format. The length of the string between the quotes has to be an even number of characters long including the F :-

X’001F’

or

X’00001F’

Are Valid.

Regards,

Martin Gilbert.

From WaltZ400:

You can also pass a numeric value to an RPG program if you code the size of the parameter as 15 poosition with 5 decimal places. You can then pass any number value tha

Discuss This Question: 1  Reply

 
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Alopez1571
    That's wright, I will just add some tips in order you can remember it later. If the length of the field is even you have to add a zero. For passing value 1, look at these examples: Length 1,0: X'1F' Length 2,0: X'001F' Length 3,0: X'001F' Length 4,0: X'00001F'
    150 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following