Previous Topic: #SENDMSG—sends a message to another terminal or userNext Topic: #SENDMSG Parameters


#SENDMSG Syntax

►►─┬─────────┬─ #SENDMSG RECORD=message-location-pointer ─────────────────────►
   └─ label ─┘

 ►─── ,RECLEN=message-length-register ────────────────────────────────────────►

 ►─┬─ ,DESTID=destination-id-pointer ───────┬─────────────────────────────────►
   ├─ ,USERID=user-id-pointer ──────────────┤
   └─ ,LTERMID=logical-terminal-id-pointer ─┘
 ►─┬──────────────────────────┬───────────────────────────────────────────────►
   └─ ,OPTNS= ───┬─ ONLY ◄ ─┬─┘
                 └─ ALWAYS ─┘

 ►─┬───────────────────────────────────────────────────┬──────────────────────►
   └─ ,SMRB= ─┬─ SYSPLIST ◄ ─────────────────────────┬─┘
              └─ send-message-request-block-pointer ─┘

 ►─┬──────────────────────────────────────┬───────────────────────────────────►
   └─ ,COND= ──┬─ NO ◄ ──────────────────┬┘
               ├─ ALL ───────────────────┤
               │      ┌─── , ────┐       │
               └─(──┬─▼── IOER ──┴─┬──)──┘
                    ├──── INVP ────┤
                    └──── UNDF ────┘
 ►─┬────────────────────────────┬─────────────────────────────────────────────►
   └─ ,IOERXIT=i/o-error-label ─┘

 ►─┬─────────────────────────────────────────┬────────────────────────────────►
   └─ ,INVPXIT=invalid-parameter-list-label ─┘

 ►─┬────────────────────────────────────────┬─────────────────────────────────►
   └─ ,UNDFXIT=undefined-destination-label ─┘

 ►─┬──────────────────────┬───────────────────────────────────────────────────►◄
   └─ ,ERROR=error-label ─┘