LINEDIT Macro MF= address) (Execute form)
generates code to fill in the parameter list at tne specified and calls the routine that displays the message text.
The address specified (either a symbolic address or in register
notation) indicates the location of the list form of the macro.
The following example shows how you might use the list and execute
forms of the LINEDIT macro to write reentrant code: WRITETOT LINEDIT TEXT='SUBTOTAL ••••• TOTAL ••••• ', SUB= (DEC, (4) ,DEC, (5t),MF=(E,LINELIST) LINELIST LINEDIT MF=L,MAISUBS=6 When the execute form of the LINEDIT macro instruction is used, the
parameter list for the message is built at label LIMELIST, where
the list form of the macro was coded. Use the MAISUBS operand when you code the list form (MF=L) -form of the
LINEDIT macro instruction. The format of the MAISUBS operand is: MAXSUBS=number where number specifies the maximum number of substitutions that will be
made when the execute form of the macro is used. Use the RENT operand when you are going to use the standard form of the
LINEDIT macro instruction and you do not care whether the code that is
generated is reentrant. The format of the RENT operand is:
When RENT=YES (the default) is in effect, the LINEDIT macro expansion
issues an message indicating that nonreentrant code is being generated. This occurs when you use the standard form of the macro
instruction and you specify one of the following: TEXTA= (reg) BOFFA= (reg) More than one substitution pair
If you do not care whether the code is reentrant, and you do not wish
to have the MNOTE appear, code RENT=NO. The RENT=NJ coding merely
suppresses the MNOTE statement; it has no effect on the expansion of the
LINEDIT macro instruction.
section 6. CMS Macro Instructions 329
PR INTL acro PRINTL Use the PRINTL macro instruction to write a line to a virtual printer.
The format of the PRINTL macro instruction is:
r I [label] I PRINTL I line [,length] [,ERROR:erraddr] L . ____ -l label
line
is an optional statement label.
specifies the line to be printed. It may be: , linetext'
lineaddr
(reg)
text enclosed in quotation marks.
the symbolic address of the line.
a register containing the address of the line.
length specifies the length of the line to be printed.
It may be: (See Note 1.)
(reg)
n .. a register containing the length.
a self-defining term indicating the length. ERROR:erraddr specifies the address of an error routine to be given control
if an error is found. If ERROR: is not coded and an error
occurs, control returns to the next sequential instruction in
the calling program, as it does if no error occurs.
1. The maximum length allowed is 151 characters on a virtual 3211 or
133 characters on a virtual 1403 or 3203. If you do not specify
the length, it defaults to ljj characters, unless ilinetext
i
is
specified. In this case, the length is taken from the length of the
line text.
2 The first character of the line is
control character, which may be either
The valid ASA control characters are:
interpreted as a carriage ASA (ANSI) or machine code. B.gX l1ganing l1f 40 Space 1 line before printing 0 FO Space 2 lines before printing 60 Space 3 lines before printing
+ 4E Suppress space before printing
1 Fl Skip to channel 1
2 F2 Skip to channel 2
3 F3 Skip to channel 3 4 F4 Skip to channel 4 S F5 Skip to channel 5 6 F6 Skip to channel 6
7 F7 Skip to channel 7
8 F8 Skip to channel 8
9 F9 Skip to channel 9 A C1 Skip to channel 10 B C2 Skip to channel 11
C
C3 Skip to channel 12 330 VM/3
7 0
CMS Command and Macro Reference
Previous Page Next Page