195 pts.
 Pass parameter RPG 400
Hi, is there any solution to pass numeric parameter to the rpg program from the command line

Software/Hardware used:
ASKED: July 29, 2008  12:43 PM
UPDATED: June 28, 2010  4:44 AM

Answer Wiki:
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  WaltZ400   645 pts.
All Answer Wiki Contributors:  WaltZ400   645 pts. , Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.