I will try that. It was fine with yours. I used the same editor. Maybe I coied in some special charactars with my file.
I will try that
That worked Mickey. You people on this site are unbelievably helpful
Hi Mickey, I just did that and this is what I get There was no output from the compiler but it created the file helloworld1 stevelaba@Steves-iMac Cobolprg % cobc -x helloworld1.cbl stevelaba@Steves-iMac Cobolprg % ls helloworld helloworld.dylib helloworld1.cbl helloworld.cbl helloworld1 stevelaba@Steves-iMac Cobolprg %
Well I compiled a test program and I got lots of errors. Looks like the code is not lined up or something. does anyone notice what I'm doing wrong? IDENTIFICATION DIVISION. PROGRAM-ID. helloworld. PROCEDURE DIVISION. DISPLAY 'Hello World!'. END PROGRAM helloworld. stevelaba@Steves-iMac Cobolprg % cobc helloworld helloworld:1: note: free format detected 1 > ????.. 2 | .. 3 | ???2.. helloworld:2: warning: source text exceeds 512 bytes, will be truncated [-Wothers] 1 | ????.. 2 > .. 3 | ???2.. 4 | .....
Well I compiled a test program and I got lots of errors. Looks like the code is not lined up or something. does anyone notice what I'm doing wrong? stevelaba@Steves-iMac Cobolprg % cobc helloworld helloworld:1: note: free format detected 1 > ????.. 2 | .. 3 | ???2.. helloworld:2: warning: source text exceeds 512 bytes, will be truncated [-Wothers] 1 | ????.. 2 > .. 3 | ???2.. 4 | .. helloworld:3: warning: source text exceeds 512 bytes, will be truncated [-Wothers] 1 | ????.. 2 | .. 3 > ???2.. 4 |...
Ok this is getting a bit complicated for what I want to do. What is IDE available via the SF site. Is this an editor?
Hi, so how do I start the new program? Is there an editing part to GnuCobol? Is there a manual on how to get started with GnuCobol? I can follow the documentation on the syntax for Cobol but where do i create the program code and then compile that file? Thanks Steve