30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

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.

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

Table 7. Major Return Code Definitions (continued)<br />

Code Definition<br />

82 A device or session error occurred during an open or<br />

acquire operation. Recovery may be possible.<br />

83 A device or session error occurred during an I/O<br />

operation. Recovery may be possible.<br />

Recovering from file system errors<br />

The following topics describe the actions you should take to recover from errors<br />

that you receive. “Major and minor return codes in files by the system” on page 26<br />

describes return codes.<br />

Normal completion of errors by the system<br />

A major and minor return code of 0000 indicates that the operation requested by<br />

your program completed successfully. Most of the time, the system issues no<br />

message. In some cases, the system might use a diagnostic message to inform the<br />

user of some unusual condition that it could not handle, but which might be<br />

considered an error under some conditions. For example, it might ignore a<br />

parameter that is not valid, or it might take some default action.<br />

For communications devices, a major return code of 00, indicating successful<br />

completion with data received, is accompanied by a minor return code that<br />

indicates what operation the application program is expected to perform next. The<br />

nonzero minor does not indicate an error. No message is issued.<br />

Completion with exceptions of errors by the system<br />

The system assigns several rather specific major return codes to conditions for<br />

which a specific response from the application program is appropriate.<br />

A major return code of 02 indicates that the requested input operation completed<br />

successfully, but the system is ending the job in a controlled. The application<br />

program should complete its processing as quickly as possible. The controlled<br />

cancel is intended to allow programs time to end in an orderly manner. If your<br />

program does not end within the time specified on the ENDJOB command, the<br />

system will end the job without further notice.<br />

A major return code of 03 indicates that an input operation completed successfully<br />

without transferring any data. For some applications, this might be an error<br />

condition, or it might be expected when the user presses a function key instead of<br />

entering data. It might also indicate that all the data has been processed, and the<br />

application program should proceed with its completion processing. In any case,<br />

the contents of the input buffer in the program should be ignored.<br />

A major and minor code of 0309 indicates that the system received no data and is<br />

ending the job in a controlled manner. A major and minor code of 0310 indicates<br />

that there is no data because the specified wait time has ended. Other minor return<br />

codes accompanying the 02 or 03 major code are the same as for a 00 major code,<br />

indicating communications status and the operation to be performed next.<br />

A major return code of 04 indicates that an output exception occurred. Specifically,<br />

your program attempted to send data when data should have been received. This<br />

is probably the result of not handling the minor return code properly on the

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

Saved successfully!

Ooh no, something went wrong!