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
Last Wiki Answer Submitted: July 29, 2008 4:33 pm by WaltZ400645 pts.
All Answer Wiki Contributors: WaltZ400645 pts. ,
Gilly40023,625 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
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’