This is a simple Open Access handler program that allows a CSV
file to be read using a conventional READ op-code with no need to use
IFS APIs or to use utilities to copy the data from the CSV form to a
temporary database file. A more sophisticated version able to utilize
column headings can be found here but
if you are just starting your OA journey we suggest starting with this
one.
The article that describes this program can be found
here.
On this page you can find the source files for the CSV data
file (IFSDATA1) that is used in the example.
The main source file for the handler (IFSINPHND1),
and the test program from the article (IFSINPTST1).
The /COPY file QRNOPENACC is shipped by IBM as part
of the Open Access support. The other files used are part of the CSVR4
routines referenced in the article.
|