30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

|<br />

|<br />

Chapter 3. Using overrides<br />

Overrides: An overview<br />

These topics explain how to use overrides on AS/400:<br />

“Overrides: An overview”provides an overview of overides on AS/400.<br />

“Benefits of using overrides” on page 34 provides information about the types of<br />

situations where overrides can be especially useful.<br />

“Summary of the override commands” on page 34 provides a list of the commands<br />

that you can use to work with overrides.<br />

“Effect of overrides on some commands” on page 35 provides information about<br />

how the override commands interact with other system functions.<br />

“Using overrides in multithreaded jobs” on page 37 lists restrictions for using<br />

overrides in multithreaded jobs.<br />

An override is a CL command that temporarily changes a file name, a device<br />

name, or remote location name associated with the file, or some of the other<br />

attributes of a file. You can enter override commands interactively from a display<br />

station or submit them as part of a batch job. You can include them in a control<br />

language (CL) program, or issue them from other programs by calling the program<br />

QCMDEXC. Regardless of how they are issued, overrides remain in effect only for<br />

the job, program, or display station session in which they are issued. Furthermore,<br />

they have no effect on other jobs that may be running at the same time.<br />

When you create an application program, the file names specified in the program<br />

associate files with it. The system lets you override these file names or the<br />

attributes of the specified file when you compile a program or run a program.<br />

You can use overrides to change most, but not all, of the file attributes that are<br />

specified when the file is created. In some cases, you can specify attributes in<br />

overrides that are not part of the original file definition. Refer to the command<br />

descriptions in the CL Reference for details.<br />

Overriding a file is different from changing a file in that an override does not<br />

permanently change the attributes of a file. For example, if you override the<br />

number of copies for a printer file by requesting six copies instead of two, the file<br />

description for the printer file still specifies two copies, but six copies are printed.<br />

The system uses the file override command to determine which file to open and<br />

what its file attributes are.<br />

How you work with overrides:<br />

The system supplies three override functions:<br />

v “Applying overrides” on page 37<br />

v “Deleting overrides” on page 54<br />

v “Displaying overrides” on page 57<br />

© Copyright <strong>IBM</strong> Corp. 1998, 2000 33

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

Saved successfully!

Ooh no, something went wrong!