Previous Topic: SUBUNPT : ONNext Topic: SUBATTR [sub_char] [ON|OFF]


MSGID [ON|OFF]

This command turns the OPS message prefix in output lines ON or OFF. Output lines with a message prefix are nine characters longer than those without one. Message prefixes are comprised of an eight-byte message ID and a trailing blank.

Default: ON

Note: The program return code indicates the value of the setting before the command was issued. A subroutine can be used to temporarily alter the value, and then restore the environment to its former state. For example:

mysubroutine:
   MSGID OFF
   saved_value = rc
   ... ... ...
   IF saved_value = 1 then
     MSGID ON
   Else
     MSGID OFF
   return

Following are the return codes:

0

Normal completion, former setting was MSGID OFF

1

Normal completion, former setting was MSGID ON