Appserver -- Input / Output

atuldalvi

Member
I want to run .p file of appserver with input and want to take o/p

like
RUN order.p ON hAppSrv.

Can anyone suggest me how to pass input and take ouput while calling remote proceure ?
 
If you mean parameters to the procedure then it is just like any other procedure. I.e.:

Code:
run whatever.p ( input param1, input param2, output param3 ) on somehandle.

Code:
/* whatever.p
 */

define input parameter p1 as character no-undo.
define input parameter p2 as character no-undo.
define output parameter p3 as character no-undo.

p3 = p1 + p2.

return.

If you are talking input & output as in keyboard and screen then you are completely misunderstanding how these things work. (You cannot do that.)
 
Hi Tom,

m trying to pass parameters like

RUN EmpList.p ( output mempno ) on server hAppSrv.

but it's throwning error message " Invalid keyword found. Enclose it in quotes"

Can you suggest me any alternative solution ?
 
According to the documentation the parameter list goes after the handle. Like so:

Code:
run whatever.p on somehandle ( input param1, input param2, output param3 ).
 
Back
Top