COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-50
DIVIDE
•
Displaying Records and Large Amounts of Data
Use the WRITE statement to display records and character-strings longer than
several lines. The DISPLAY statement is not designed to deliver logical records or
large amounts of data to a device.
•
NO ADVANCING Phrase
If you include the NO ADVANCING phrase, the device is not changed after it
displays the final operand (for example, the device is not repositioned to the next
line). If the device is a printer or a spooler process, this causes the next line
displayed to overprint the current line (useful for underlining). If the device is a
terminal, the cursor appears after the last character displayed (useful for issuing a
prompt and accepting the response on the same line).
DIVIDE
Form Topic
DIVIDE a INTO b DIVIDE INTO
DIVIDE a INTO b GIVING c
DIVIDE b BY a GIVING c
DIVIDE GIVING
DIVIDE a INTO b GIVING c REMAINDER d
DIVIDE b BY a GIVING c REMAINDER d
DIVIDE GIVING REMAINDER