18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ADVANCE (AV)<br />

ADVANCE (AV)<br />

The ADVANCE; command is used in Reports or Shadow Reports to advance a specified<br />

number of lines between Frames, or to advance to a new page. If a Shadow Report is<br />

specified, only that Shadow Report is affected by the ADVANCE; command.<br />

Which using Report Output Control (ROC) Reports, or non-ROC MCP based TP Reports,<br />

an ADVANCE; NEW.PAGE command is ignored if no Report output has been produced,<br />

since all Reports start at top-of-page. Page headings resulting from an ADVANCE;<br />

command are not produced until further output is produced. This has two implications:<br />

headings can be changed after an ADVANCE; command (but before output) and Reports<br />

will not produce a final page containing only headings.<br />

For MCP based non-ROC Reports that output to LP or RP, the ADVANCE; NEW.PAGE<br />

command produces footers, a new page, and headings whenever it is executed.<br />

ADVANCE; CHANNEL Variant<br />

Syntax<br />

Note: This variant is not valid on OS 2200 based <strong>LINC</strong> Systems, and is ignored in<br />

LDA Run Time.<br />

For UNIX and MCP based <strong>LINC</strong> Systems, the ADVANCE; CHANNEL command variant can<br />

be used for Reports directed to an LP device. It is intended for printing on special<br />

stationery.<br />

For Reports directed to TP devices, (or RP devices in MCP based <strong>LINC</strong> Systems),<br />

ADVANCE; CHANNEL 1 causes an advance to end-of-page, and any other channel causes<br />

an advance of one line. If end-of-page is passed, the System Data item GLB.PAGECOUNT<br />

is not incremented and no headings are printed. The System Data item GLB.LINECOUNT is<br />

incremented by one.<br />

For a UNIX <strong>LINC</strong> System, the shell variable COBLPFORM must be set for the ADVANCE;<br />

CHANNEL command to have the desired effect. For Standard ROC Reports, the<br />

COBLPFORM variable must be set when you initiate the ROC Output Report, not when the<br />

Report is run. For Direct Reports, the COBLPFORM variable must be set when the Report<br />

is run. For more details, see the Micro Focus COBOL for UNIX COBOL System <strong>Reference</strong>.<br />

DD DDDBDDDDDDDD DDDDDDDBDDDDDDDDDD <br />

3 3<br />

CDDDDDD DDDDDD4<br />

3 3<br />

@DDD DD DDY<br />

DDDDDDDDDDDDDBDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDDDDDDDD4<br />

3 3<br />

@DD DD DDY<br />

v 1-17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!