BPX4CCS (__console()) example

The following code sends a message to the console. For the callable service, see __console() (BPX1CCS, BPX4CCS) — Communicate with console (modify/stop/WTO/DOM). For the data structure, see BPXYCCA — Map input/output structure for __console(). AMODE 31 callers use BPX1CCS (__console()) example.
                                              
         CALL  BPX4CCS,              Send msg to console               +
               (MSGATTRLEN,          Input: BPXYCCA length             +
               MSGATTR,              Input: BPXYCCA                    +
               MODSTRINGPTR,         Output: Modify msg from console   +
               MODIFYSTGLEN,         Output: Length of modify msg      +
               CONMSGTYPE,           Output: Console msg type          +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------