C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only

reading an ascii file on z/OS

  • 1.  reading an ascii file on z/OS

    Posted Wed August 03, 2022 03:22 PM

    If I use fopen(... "r") and use fgets().. I can read the file line of a file in OMVS.

    If this is a  file tagged as ASCII ISO8859-1.  I get the whole file read in ( presumably because there is no x'15' new lines in the file)

    Are there any options to be able to read the (ASCII) file line by line? 



    ------------------------------
    Colin Paice
    ------------------------------