CALL "WD2$SESSION" USING WD2-PUT-SESSION-VALUE                            fieldName                           fieldValue                    GIVING returnCode  | 
opCode  | Constant  | |
fieldName  | PIC X(n)  | Specifies the name of the session field whose value must be set.  | 
fieldValue  | PIC X(n)  | Specifies the field value.  | 
0   | Operation successful.  | 
-1  | Running outside webDirect environment.  | 
-2  | Invalid parameters.  | 
-3  | Invalid opCode.  | 
-4  | Internal error.  | 
-5  | Internal error.  | 
-6  | Field not found.  |