Input Output Parameters

BobbyB

New Member
I have an appserver routine that is being exposed as a web service.
I have a requirement to have an input parameter the same name as an output parameter on the web service
e.g. the parameter "JobId"...

DEFINE INPUT PARAMETER JobId AS INTEGER NO-UNDO.
DEFINE INPUT PARAMETER JobAction AS CHARACTER NO-UNDO.

DEFINE OUTPUT PARAMETER JobId AS INTEGER NO-UNDO.
DEFINE OUTPUT PARAMETER JobStatus AS CHARACTER NO-UNDO.

Obviously this will not compile as "JobId" is not unique.

Is there any way that I can code this so that it will compile ok and when I include this routine in a proxygen the input & output parameters "JobId" can have the same name ?.

Thanks
Bobby
 

Cringer

ProgressTalk.com Moderator
Staff member
Can't you just use
DEFINE INPUT-OUTPUT PARAMETER JobId AS INTEGER NO-UNDO.
?
 

Cringer

ProgressTalk.com Moderator
Staff member
Great! :) For some reason I was second-guessing myself. I thought it couldn't be that simple... :)
 
Top