Basic form
BACK.
Effect
Returns output position to the first line of the current page after the TOP-OF-PAGE processing.
When used in connection with RESERVER X LINES , the statement returns the output position to the first output line after RESERVE .
When used in connection with RESERVER X LINES , the statement returns the output position to the first output line after RESERVE .
Example
DATA: TOWN(10) VALUE 'New York',
CUSTOMER1(10) VALUE 'Charly',
CUSTOMER2(10) VALUE 'Sam',
SALES1 TYPE I VALUE 1100,
SALES2 TYPE I VALUE 2200.
RESERVE 2 LINES.
WRITE: TOWN, CUSTOMER1,
/ CUSTOMER2 UNDER CUSTOMER1.
BACK.
WRITE: 50 SALES1,
/ SALES2 UNDER SALES1.
Using the positioning in WRITE in column 50, data not yet output is not overwritten, but the sales volume is output after the customer names.
If you use a '/' with the first WRITE after the BACK statement, this starts a (usually unwanted) new line. BACK in the TOP-OF-PAGE processing positions the cursor after the standard header. Subsequent WRITE statements also overwrite the lines output under TOP-OF-PAGE .
Performance
The runntime required to execute a BACK statement is about 1 msn (standardized microseconds).
The runntime required to execute a BACK statement is about 1 msn (standardized microseconds).
No comments :
Post a Comment