LINEDIT llNEDIT Use the LINEDIT macro instruction to convert decimal values into EB:DIC
or hexa3ecimal and to display the results at your terminal. The format
of the LINEDIT macro instruction is:
[label] LINEDIT
r , r ,r , I,TEXT='messagetext' I I , , TEXTA=address I I NO I I NO I L J L J L
[ , SUB= (substitutionlist) ]
r
,
r
, I, DISP= 1YPE I I ,BUFFA= ({addreSsp t , NONE I , I I SIO I L
! PRINT I , CPCOMM I , ERRMSG f
L J
r "MF= /1 ) I address\) , , l (reg) '}
L
r ,
: ' RENT= :
L J
.J
, [,MAXSOBS=number] I I J
J
The LINEDIT macro operands are listed below, briefly. For detailed
formats, descriptions, and examples, refer to the appropriate heading
following "L1NED1T Macro Operands." TEXT='message text'
specifies the text of the message to be edited. TEXTA.=address specifies the address of the message text. It may be:
label
(reg)
the symbolic address of the message text.
a register containing the address of the message text. DOT specifies whether a period is to be placed at the end of the
line. COMP SUB D1SP BOFFA MF specifies whether multiple blanks are to be remdved from the
line.
specifies a substitution list describing the conversions to be
performed on the specifies how the edited line is to be used. When DISP is not
coded, the message text is displayed at the terminal.
specifies the address of the buffer in which the line is to be
copied.
specifies the macro format.
section 6. CMS Macro Instructions 319
LINEDIT Macro MAXSGBS specifies the maximum number of sUbstitutions (MAXSUBS is used
with the list form of the RENT specifies whether reentrant code must be generated.
1. You should never use registers 0, 1, or 15 as address registers
when you code the LINEDIT macro instruction; these registers are
used by the macro.
2. When message text for the LINEDIT macro instruction contains two or more consecutive periods, it indicates that a substitution is to be
performed on that portion of the message. The number of periods
you code indicates the number of characters that you want to appear
as output. To indicate what values are to replace the periods, code
a substitution list using the SUB operand.
3. When you use the standard (default) form of the LINED IT macro
instruction, reentrant code is produced, except when you specify more than one SUbstitution list, or when you use register notation
to indicate an address on the TEXTA or BUFFA operands. When any of
these conditions occur, an MNOTE message is produced, indicating
that the code is not reentrant.
If you do not care whether the code is reentrant, you can specify
the RENT=NO operand to suppress the MNOTE message. Otherwise, you
can use the list and execute forms of the macro to write reentrant
code (see "MF Operand"). 4. When the macro completes, register 15 may contain the value 2 or 3,
indicating that a channel 9 or channel 12 punch was sensed,
respectively. You can use these codes to determine whether the end
of the page is near (channel or if the end of the page has been
reached (channel 12). 320 VM/370 eMS Command and Macro Reference
Previous Page Next Page