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.

ATTRIBUTE (ATTR)<br />

ATTRIBUTE (ATTR)<br />

Use this command for MCP based <strong>LINC</strong> Systems to define the printer backup file names<br />

for your Report output. The command is available for ROC Direct Reports and non-ROC<br />

Reports directed to LP or RP devices.<br />

Note: The printer backup file name is set when the file is opened. The ATTRIBUTE;<br />

command must therefore be executed before a print file is opened.<br />

Purpose of ATTRIBUTE; command<br />

Errors<br />

About printer backup files<br />

Printer backup files created by <strong>LINC</strong> Reports are named:<br />

<br />

In this name:<br />

$ usercode is the usercode of the file<br />

$ bdname is a prefix for the file name<br />

$ mix is the seven-digit mix number of the Report<br />

$ counttitle consists of count, a three-digit number, and title, the title of the file<br />

Using the ATTRIBUTE; command<br />

The ATTRIBUTE; command enables you to define the BDNAME attribute - the<br />

(usercode)bdname portion of this name - in similar fashion to the <strong>LINC</strong> System command<br />

:BDD.<br />

By default, the BDNAME attribute is <strong>LINC</strong>BD, although this may have been changed by<br />

using the <strong>LINC</strong> System command :BDD. For standalone Reports, the default value is a<br />

period (.), which means the system default *BD is used.<br />

If the command cannot set the BDNAME attribute (for example, the syntax is not correct),<br />

the attribute is unchanged. The System Data item GLB.STATUS is not set by this<br />

command. You can include the GLB.STATUS; command if you wish to test the success of<br />

the command.<br />

There is no recovery of the BDNAME attribute. It is your responsibility to ensure that your<br />

change is saved and recovered.<br />

If your Report is not running under a privileged usercode, exceeding the limit (180<br />

characters) or creating an invalid file name (for example, of more than 14 levels) will result<br />

in your Report terminating with a fatal error.<br />

v 1-21

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

Saved successfully!

Ooh no, something went wrong!