CALL "WD2$SESSION" USING opCode parameters GIVING returnCode |
opCode | PIC 9 | It is the function to be executed. Valid values, defined in iscobol.def, are: |
parameters | PIC X(n) | Parameters depends on the opcode. |
*> on working-storage copy "isgui.def" *> g-field and g-value are pic x(n) move "iscobol.wd2.on_client_info.screen.width" to g-field call "wd2$session" using wd2-get-session-value g-field, g-value *> display message "Screen width is " g-value |
*> on working-storage copy "isgui.def" *> ws-user-name, s-field and s-value are pic x(n) move "wd2.username" to s-field move ws-user-name to s-value call "wd2$session" using wd2-put-session-value s-field, s-value. |