Pass parameter RPG 400
195 pts.
0
Q:
Pass parameter RPG 400
Hi,

is there any solution to pass numeric parameter to the rpg program from the command line
ASKED: Jul 29 2008  12:43 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
535 pts.
0
A:
 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0
  • AddThis Social Bookmark Button
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 that will fit in this field size such as 123, 123.45, etc.
Last Answered: Jul 29 2008  4:33 PM GMT by WaltZ400   535 pts.
Latest Contributors: Gilly400   23625 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Alopez1571   150 pts.  |   Jul 29 2008  6:18PM GMT

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’

 
0