Reading from sequential files — C programming language supplement


If the application program does not have the requirement to “READ” from any sequential files, this Section can be by-passed.

In lieu of coding C I/O functions for sequential file processing, use the following QUICKSTART function:

QUICKSAM(ws.infile.ddname,ioarea);

QUICKSTART knows that the file is being read because the file_type was specified as “I”, for input

Always check the return code following a “READ” request for the value 'EOF'.

if (strncmp(ws.infile.samretc,"EOF",3) == 0)
{ /* eof processing here */}


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

QUICKSTART for MVS 3.4