Questions tagged [cobol]

COBOL (COmmon Business Oriented Language) was the product of a US Department of Defense initiative to develop a standard and portable programming language for business applications. COBOL celebrated its 50th birthday in 2009. It is generally believed that new COBOL development is in decline but a commercial commitment remains to keep the language relevant in today’s computing landscape.

COBOL (COmmon Business Oriented Language) was the product of a US Department of Defense initiative to develop a standard and portable programming language for business applications. COBOL celebrated its 50th birthday in 2009. It is generally believed that new COBOL development is in decline but a commercial commitment remains to keep the language relevant in today’s computing landscape.

Standards

The official COBOL standard is very slow to evolve due to a strong desire to keep the language relevant without compromising core strengths such as execution efficiency, interoperability with other languages and backward compatibility with earlier versions of the language.

The current COBOL ISO/IEC standard is ISO/IEC 1985:2014 Information technology -- Programming languages -- COBOL.

Vendors of course continue to issue new releases of their COBOL compilers with unique non-standard features from time to time. As a consequence, COBOL variants vary more than one might expect given the availability of standards.

Sources

There are several COBOL centered web sites where you can obtain further information:

Lightweight Editors with COBOL syntax highlighting

Various COBOL language code editor plugin are available:

1477 questions
10
votes
7 answers

Calling a Web Service from COBOL or CL

I'm using AS400 and I have been asked to call a web service from the green screen. How can thisbe this achieved? Any sample COBOL or CL code would be very helpful.
Anton Baclao
  • 101
  • 1
  • 3
9
votes
3 answers

Read STDIN (SYSIN) in COBOL

I want to read the lines out of STDIN (aka SYSIN) in COBOL. For now I just want to print them out so that I know I've got them. From everything I'm reading it looks like this should work: IDENTIFICATION DIVISION. PROGRAM-ID. APP. ENVIRONMENT…
singpolyma
  • 10,519
  • 3
  • 42
  • 69
9
votes
2 answers

GnuCOBOL failing to find dynamic symbols, only on recent Ubuntu

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 longer works on Ubuntu 14.04, but does under…
Brian Tiffin
  • 3,718
  • 1
  • 20
  • 34
9
votes
2 answers

Setting up COBOL Compiler under Mac OS?

In my university, we're being taught COBOL, and I'm trying to get a head start and learn COBOL, C++, and Java before I get into the classes next year. Problem is; COBOL is so old, it's hard to grab support for it in mac (my laptop is a mac). I…
jonathan todd
8
votes
6 answers

Is there a static analysis tool for Python, Ruby, Sql, Cobol, Perl, and PL/SQL?

I am looking for a static analysis tool for Python, Ruby, Sql, Cobol, Perl, PL/SQL, SQL similar to find bugs and check style. I am looking for calculating the line count, identify bugs during the development, and enforcing coding standard.
user118030
8
votes
3 answers

compute rounded in cobol

I am confused with the rounded in the compute function in cobol. Declaration: VAR-A PIC S9(9)V99 COMP-3. VAR-B PIC S9(9)V9(6) COMP-3. Procedure. MOVE +12.08 TO VAR-A. MOVE +6.181657 TO VAR-B. COMPUTE VAR-A ROUNDED = VAR-A +…
Grekoz
  • 275
  • 1
  • 6
  • 14
8
votes
16 answers

What's the bright side of Cobol?

I love spending my time investigating cool features of languages, even if I won't have a chance to use them anytime soon, but keep hearing only bad things about Cobol, but I'm sure it must of had some nice features for it to become as important as…
Robert Gould
  • 65,529
  • 58
  • 177
  • 269
8
votes
2 answers

Problem with COBOL move to comp-3 variable

I'm having the following problem in a COBOL program running on OpenVMS. I have the following variable declaration: 01 STRUCT-1. 02 FIELD-A PIC S9(6) COMP-3. 02 FIELD-B PIC S9(8) COMP-3. 01 STRUCT-2. …
mmutilva
  • 17,450
  • 21
  • 57
  • 80
8
votes
5 answers

How does COBOL store and retrieve data?

I'm starting to learn about COBOL. I have some experience writing programs that deal with SQL databases and I guess I'm confused how COBOL stores and retrieves data that is stored in a mainframe for example. I know that it's not like relational…
Matt Phillips
  • 10,125
  • 10
  • 42
  • 69
8
votes
8 answers

Helping to ease COBOL programmers to .Net. What are your suggestions?

I have a number of COBOL programmers who are moving to .NET. I've found many struggle to adopt/understand OO programming principles. I don't have any COBOL experience, so my ability to find what few similarities there are is very limited. There's…
Rob
  • 1,335
  • 1
  • 8
  • 14
7
votes
1 answer

Move record from Oracle array to Cobol occurs

How can I move a record from oracle to a Cobol array? When I move a single field, everything works as expected. When I try to move a record in an Oracle VARRAY I cannot get it to work. The PRO*COBOL precompiler gives the following error…
7
votes
1 answer

Read COBOL COMP data in C#

I'm new to COBOL and I have been trying to read record information from a text file that is an output from the table. Most non-comp data-types i'm okay with, it's the 'COMP' ones i'm getting stuck on. I've been trying to figure this out all day…
ThatUser
  • 397
  • 4
  • 10
7
votes
6 answers

What are some good resources for getting started with COBOL programming?

I'm thinking about learning COBOL. Where should I start?
joeforker
  • 36,731
  • 34
  • 138
  • 231
7
votes
5 answers

A Strange Error (COBOL)

Hey all, got one mountain of a problem here. I have completed a program I had to do for college homework, but when I run it the output shows almost nothing it is suppose to. This only happens when I RUN it though. If I hold F11 to STEP through the…
Kimmy1235
  • 879
  • 2
  • 13
  • 24
7
votes
3 answers

Reading a Cobol generated file

I’m currently on the task of writing a c# application, which is going sit between two existing apps. All I know about the second application is that it processes files generated by the first one. The first application is written in Cobol. Steps: 1)…
Rauland
  • 2,320
  • 5
  • 30
  • 43
1 2
3
98 99