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.

Application 1 Application 2<br />

Application program<br />

Open changes<br />

parameter P1<br />

to QRT<br />

Override CL command<br />

changes parameter P2<br />

to END<br />

P1 = QRT<br />

P2 = END<br />

P3 = 30<br />

.<br />

.<br />

.<br />

<strong>File</strong><br />

.<br />

.<br />

.<br />

P1 = RPT<br />

P2 = NEXT<br />

P3 = 30<br />

.<br />

.<br />

.<br />

Open changes<br />

parameter P3<br />

to 10<br />

Opened file Opened file<br />

Figure 2. Temporarily Changing a <strong>File</strong><br />

20 <strong>File</strong> <strong>Management</strong> V4R5<br />

Application program<br />

Override CL command<br />

changes parameter P2<br />

to IMD<br />

P1 = RPT<br />

P2 = IMD<br />

P3 = 10<br />

.<br />

.<br />

.<br />

Once an application establishes a connection between itself and the file by opening<br />

the file, it can then proceed to use the file for either input or output operations. In<br />

the case of a database file, the open process establishes a path between the<br />

application and the actual database file. For device files, a path is established<br />

between the application and the actual device, or to a spooled file if the spooling<br />

attribute is active for the device file. In all cases, the application connects to what it<br />

wants to use, and those connections determine what input or output operations are<br />

valid. Not all operations are valid with all file types. The application must be<br />

aware of what file types it uses and then use only those operations which are valid<br />

for those types.<br />

Open considerations when using *LIBL with a DDM file<br />

RSLH196-1<br />

Take note of the following considerations when you open DDM files and specify<br />

*LIBL for the library:<br />

v The system first searches the library list for a local database file with the<br />

specified member. Even if the local database file is located in a library later in<br />

your library list than the library containing the DDM file, the local database file<br />

containing the specified member is used.

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

Saved successfully!

Ooh no, something went wrong!