The GET command is used to read the inbound JSON object.
Fragments use only fields, so the GET FRAGMENT command requires the SERVICE_EXCHANGE(*FIELD) keyword.
Lists use only a working list, so the GET LIST command requires a working list argument.
The GET command also allows the program to access the inbound HTTP protocol properties.
Syntax:
|
Example
GET LIST(ORDERS) #WRKLST
GET FRAGMENT(DETAIL) SERVICE_EXCHANGE(*FIELD)
GET PROPERTY(*LIST) #WRKLST(NAME,VALUE)