LINEDIT Macro LINEDI! TEXT='HI!',DOT=NO the line is displayed as:
HI! Use the COMP operand when you want to display multiple blanks within your message text. The format of the COMP operand is:
For example, if you code:
LINEDIT TEXT='TOTAL 5' ,COMP=NO the line is displayed as: TO!'AL 5. Use the SUB operand to specify the type of substitution to be performed
on those portions of the message that contain periods. For each set of
periods, you must specify the type of sUbstitution and the value to be
substituted or its address. The format of the snB operand is: r -, I SUB= (
( HEX {' (reg) }
) ) , , DEC ,expression 1 I 1 I HEXA{,addreSS} , , DECA , (reg) I I , I HEX4A f address } , I CHARA , (reg) , I CHAR8A , ({addreSS}, {length}) , t (reg) (reg) , L -3 Each of the possible sUbstitution pairs is described below, followed by
discussions of length specification and multiple substitution lists. HEX, (reg-) converts the value in the specified register to graphic hexadecimal
format and sUbstitutes it in the message text. If you code fewer
than eight consecutive periods in the message text, then leading diqits are truncated; leading zeros are not suppressed. For example, if register 3 contains the value C0031FC8, then the ma=ro instruction:
LINEDIT TEXT='VALUE = ••• ',SUB=(HEX,(3)} results in the display: VALfJE = FCB.
322 IB' VM/370 eMS Command and Macro Reference
LINEDIT !lacro HEX, expression
converts the given expression to graphic hexadecimal format and
substitutes it in the message text. The expression may be a
symbolic address or symbol equate; it is evaluated by means of a
LOAD ADDRESS (LA) instruction. For example, if your program has a
label BUFF1, the line:
LINEDIT TEXT='BUFFER IS LOCATED AT •••••• ',SUB=(HEX,BUFP1) miqht result in the display: BUFFER IS LOCATED AT 0201AC. If vou code fewer than eight periods in the message text, leading are truncated; leading zeros are not suppressed.
DEC, (req) converts the value in the specified register into graphic deciaal
format and substitutes it in the message text. Leading zeros are
suppressed. If the number is negative, a leading minus sign is
inserted. For example, if register 3 contains the decimal value 10,345, then the macro instruction:
LINEDIT TEXT=' REG 3 = •••••• ', SUB= (DEC, (3») results in the line:
REG 3 = 10345. DEC, expression
converts the given expression to graphic decimal format and
substitutes it in the message text. The expression may be a
symbolic label in your program or a symbol equate. For example, if program contains the statement: VALUE EQU 2003 then the macro instruction:
LINEDIT TEXT='VALUE IS •••••• ',SUB=(DEC,VALUE+5) results in the display: VALUE IS 2008. HEXA,address converts the fullword at the specified address to graphic heradecimal format and substitutes it in the message text. If you
code fewer than eight periods in the message text, leading digits
are truncated; leading zeros are not removed. For example, if you
coda:
LINEDIT TEXT='HEX VALUE IS ••••• ·,SUB=(HEXA,CODE) then the last five hexadecimal digits of the fullword at the label
CODE are substituted into the message text.
HE XA, (reg)
converts the fullword at the address indicated in the specified reqister into graphic hexadecimal format and substitutes it in the
message text. For example, if you code:
LINEDIT TEXT='REGISTER 5 -> •••••• ·,SUB=(HEXA,(5») section 6. C!lS !lacro Instructions 323
Previous Page Next Page