Real stuck on this one.
Please help..... If I can get a parm into the program and execute a simple calc spec, I wil be able to figure out the rest.
Or, does anyone know of an RPG ILE forum that has a good knowledge pool? (not trying to insult anyone)
Have been able to get this code to complile, but not execute past mainline entry (using Debug). Need to pass variable length Parms into a Program.
I use the following to call the program:
CALL PGM(TST05R) PARM('a' 'b')
H DFTACTGRP(*NO) ACTGRP(*NEW)
* Prototype for procedure
D Tst05r PR
D Parm1 72A varying Const
D Parm2 72A varying Const
D Parm3 100A Options(*nopass) Const
D Parm4 100A Options(*nopass) Const
P Tst05r B
* Procedure Inteface to Entry Parms
D Tst05r PI
D Parm1 72A varying Const
D Parm2 72A varying Const
D Parm3 100A Options(*nopass) Const
D Parm4 100A Options(*nopass) Const
D x s 100A
D*
C Eval x = Parm1
C Return
C eval *inlr = *on
P e
Please help..... If I can get a parm into the program and execute a simple calc spec, I wil be able to figure out the rest.
Or, does anyone know of an RPG ILE forum that has a good knowledge pool? (not trying to insult anyone)
Have been able to get this code to complile, but not execute past mainline entry (using Debug). Need to pass variable length Parms into a Program.
I use the following to call the program:
CALL PGM(TST05R) PARM('a' 'b')
H DFTACTGRP(*NO) ACTGRP(*NEW)
* Prototype for procedure
D Tst05r PR
D Parm1 72A varying Const
D Parm2 72A varying Const
D Parm3 100A Options(*nopass) Const
D Parm4 100A Options(*nopass) Const
P Tst05r B
* Procedure Inteface to Entry Parms
D Tst05r PI
D Parm1 72A varying Const
D Parm2 72A varying Const
D Parm3 100A Options(*nopass) Const
D Parm4 100A Options(*nopass) Const
D x s 100A
D*
C Eval x = Parm1
C Return
C eval *inlr = *on
P e