On 22/08/2017 11:59 PM, Farley, Peter x23353 wrote:
In that case the assembler I/O modules handled any errors that they could 
(SYNAD, etc.) and passed back error code(s) and messages to the COBOL interface 
module to pass up to the caller, simulating COBOL FILE STATUS and VSAM error 
variable where possible.

Metal C might be a better choice for more generalized file I/O handling, one 
small step above assembler but with all assembler facilities available.

The best generalized file handling I've seen on z/OS is the C stdio fopen() and friends (by a country mile). That one factory function can handle all the standard access methods: BSAM, QSAM, VSAM (KSDS, RRDS, ESDS), hiperspaces and Unix files. It's a thing of beauty. To code the equivalent functionality in Metal/C would take hundreds if not thousands of lines of code.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to