05.06.2013 Views

Z-MAP Plus I/O Access Library - Landmark Software Manager ...

Z-MAP Plus I/O Access Library - Landmark Software Manager ...

Z-MAP Plus I/O Access Library - Landmark Software Manager ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Landmark</strong> Graphics Z-<strong>MAP</strong> <strong>Plus</strong> I/O <strong>Access</strong> <strong>Library</strong><br />

Using the Status Flag Option, ISTAT<br />

Opening and Closing Files<br />

If you are still having problems, attempt the same process in<br />

Z-<strong>MAP</strong> <strong>Plus</strong> and see what the results are. Especially, check if the files,<br />

master files and graphics files are good.<br />

All errors should be printed by ZPI/O code. The application<br />

programmer should check the code and decide what to do, but need not<br />

write a message.<br />

ISTAT 0 Fatal error occurred, application programmer should<br />

close down subsystems, pictures, files, etc., for a clean<br />

abend. Output arguments are printed but they may not<br />

represent good values, depending on where the error<br />

occurred.<br />

For the Draw and Plot routines, the files must be closed.<br />

Files should be opened when working with most of the File utilities.<br />

Graphics files and pictures usually must be opened before Graphics<br />

utilities can be performed.<br />

If files or pictures are opened, they should be closed before terminating<br />

the application program.<br />

Every effort is made to close all files within a ZPI/O subroutine, but<br />

sometimes some internal files may be left open. If you have trouble of<br />

this kind, perform the following loop after the call in question. This<br />

guarantees that the files are closed:<br />

CALL SIname (<br />

DO xxx, I = 1,5<br />

CALL SIFCLO(I, ISTAT)<br />

xxx CONTINUE<br />

5000.0.0 ZPI/O Overview: Comments and Suggestions 30

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

Saved successfully!

Ooh no, something went wrong!