Quantcast
Channel: Visual COBOL
Viewing all articles
Browse latest Browse all 5819

Forum Post: RE: Read file in COBOL

$
0
0
thomasbn94 This will work for a flat file for INPUT, for OUTPUT and also for EXTEND           SELECT FILEA               ASSIGN TO 'C:\MyFolder\FILEA.txt'               ORGANIZATION IS LINE SEQUENTIAL               ACCESS IS SEQUENTIAL. BTW, the use of quotes or apostrophes don't make any difference so long as you use them in pairs You can have both in the one program no problem VALUE 'ONE' and VALUE "ONE" means the same thing to the compiler For an indexed file (some call it ISAM - Indexed Sequential Access Method) look in the documentation and vary the above sample code a little (lines 3 & 4)

Viewing all articles
Browse latest Browse all 5819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>