Hello everyone!
So, I am using brew to install various tweaks in terminal. For some of my classes, we're doing COBOL (yes, I'm not joking) since we have a mainframe component to cover.
So, as much as I hate COBOL, I'd like to stick to using OS X rather than using the MicroFocus Visual COBOL Compiler my school provided (especially since it's a Windows-only program that is supposed to integrate into Visual Studio). So I discovered GNU COBOL.
I had the hardest time getting it to work once I installed it in brew. Turns out that a number of C libraries like libcob and gmp need to be installed. So eventually I found out you can get it to work if you install some command line tools that are part of XCODE.
So that's the background.
So, I have I start to compile my assignments and they compile fine... EXCEPT I get an unrelated warning about an explicit call to some C function that COBOL uses for displaying numbers. Code still runs and nothing's wrong with my syntax or anything, so it appears to be a COBOL issue. So I uninstalled GNU-COBOL and installed the older OPEN-COBOL. Warning disappears. Weird.
Except for this: "Warning: RECORD clause ignored for LINE SEQUENTIAL"
What gives?
The code that would generate that warning would be when I open my input and output files.
I'll be surprised if anyone knows the answer to this as COBOL isn't really used these days.
So, I am using brew to install various tweaks in terminal. For some of my classes, we're doing COBOL (yes, I'm not joking) since we have a mainframe component to cover.
So, as much as I hate COBOL, I'd like to stick to using OS X rather than using the MicroFocus Visual COBOL Compiler my school provided (especially since it's a Windows-only program that is supposed to integrate into Visual Studio). So I discovered GNU COBOL.
I had the hardest time getting it to work once I installed it in brew. Turns out that a number of C libraries like libcob and gmp need to be installed. So eventually I found out you can get it to work if you install some command line tools that are part of XCODE.
So that's the background.
So, I have I start to compile my assignments and they compile fine... EXCEPT I get an unrelated warning about an explicit call to some C function that COBOL uses for displaying numbers. Code still runs and nothing's wrong with my syntax or anything, so it appears to be a COBOL issue. So I uninstalled GNU-COBOL and installed the older OPEN-COBOL. Warning disappears. Weird.
Except for this: "Warning: RECORD clause ignored for LINE SEQUENTIAL"
What gives?
The code that would generate that warning would be when I open my input and output files.
Code:
15 ENVIRONMENT DIVISION.
16 INPUT-OUTPUT SECTION.
17 FILE-CONTROL.
18 * Input file
19 SELECT F01-INVENTORY-FILE ASSIGN TO 'ASST2.dat'
20 ORGANIZATION IS LINE SEQUENTIAL.
21 * Output file
22 SELECT F02-REPORT-FILE ASSIGN TO 'ASST2.rpt'
23 ORGANIZATION IS LINE SEQUENTIAL.
I'll be surprised if anyone knows the answer to this as COBOL isn't really used these days.