gnucobol Questions

6

Solved

I'm completely new to COBOL, and I'm wondering: There seems to be no difference between DISPLAY "foo" and DISPLAY "foo". What does the dot at the end of a line actually do? When should I u...
Colt asked 6/11, 2012 at 11:40

2

I have this very simple dummy COBOL program which does a dummy COMPUTE and displays the result. ID DIVISION. PROGRAM-ID. DUMMYPGM. DATA DIVISION. WORKING-STORAGE SECTION. 01 NUM-A PIC 9(3) VA...
Nim asked 4/10, 2016 at 14:4

1

Solved

Using GnuCOBOL 2.2.0 on Ubuntu 18.10. Working through 'Beginning COBOL for Programmers' by Michael Coughlan. GnuCOBOL has been compiling the book's examples without trouble up until Chapter 9, when...
Piliform asked 3/3, 2019 at 22:7

3

Solved

I am learning COBOL just for the fun of it and now want to call C functions from my COBOL source (using GnuCOBOL). I can call C functions just fine, however I have a small problem with a function ...
Vampire asked 22/10, 2016 at 16:11

1

Solved

I want to run this hello world program, in COBOL : Identification Division. program-id. HelloWorld. Procedure Division. Display 'Bonjour '. Display 'Comment allez vous ? ' . goback. But, I have ...
Rudolph asked 8/1, 2016 at 9:15

2

Solved

Is it possible to execute COBOL code without providing input files? I'm using cobc. I tried to pipe the code to the cobc process: $ cat my-input.cbl | cobc cobc: No input files To compile a fil...
Joinville asked 29/7, 2015 at 18:48

4

I'm trying to make a very simple COBOL program. I've gotten my directory, configurations, etc. all set up, but when I go to compile it I get this error: sampleCOBOL.cbl: In paragraph 'Main-Paragra...
Emmittemmons asked 28/1, 2014 at 18:28

2

Solved

Something changed recently, I think. GnuCOBOL relies on dynamic linking, symbols looked up with dlsym at run-time. This CALL run-time support code has been in OpenCOBOL for some 7 years now. It no...
Equivalence asked 7/10, 2014 at 1:52

2

Solved

Why can I not do this nested perform loop in COBOL? If I put END-PERFORM. in any line sooner than where I have the last one just before EXIT PROGRAM - it works. But I need the program to display t...
Marianelamariani asked 25/4, 2013 at 17:13

5

Solved

I'm just learning COBOL; I'm writing a program that simply echos back user input. I have defined a variable as: User-Input PIC X(30). Later when I ACCEPT User-Input, then DISPLAY User-Input " pl...
Irrespirable asked 12/1, 2010 at 16:5
1

© 2022 - 2024 — McMap. All rights reserved.