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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

<strong>Reference</strong>s<br />

SET.TITLE (SETT)<br />

The following example will create a physical file that will be given the name entered by the<br />

user. The file is then loaded by extracting SREP records into it. Assuming this is all the<br />

code in the Report, at the end of the Report the file will be kept, and it will contain the<br />

details extracted from SREP.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The next example will open the existing physical file that it is identified by the name<br />

entered by the user. The file is then sorted into name order. Assuming this is all the code in<br />

the Report, at the end of the Report the file will be kept, with records sorted in ascending<br />

order of salesrep name. In the code, a dummy DETERMINE; command is used to associate<br />

the file layout B with the SREP Component. In a normal situation, you would probably use<br />

such a DETERMINE; command loop to perform a required function; for example, printing<br />

the sorted file.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

‘‘EXTRACT (EX)’’<br />

‘‘DETERMINE; ACTUAL’’<br />

‘‘SORT (SO)’’<br />

The subsections on Extract Files and MAPPER Extract Files in the "Interfacing to Other<br />

Systems" sectioninthe<strong>LINC</strong> Administration and Operations Guide for the relevant host<br />

type.<br />

v 1-233

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

Saved successfully!

Ooh no, something went wrong!