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 new ISO/IEC COBOL standards still evolve and 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. ISO/IEC published a standard for 1985, 2002, 2014 and works on 2022.

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 dialects 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:

1698 questions
6
votes
1 answer

How to make http requests from COBOL

How to make http requests from COBOL? For example, how can I create GET, POST requests to http://example.com? Relevant information about what I have on my machine: $ cobc --version cobc (OpenCOBOL) 1.1.0 Copyright (C) 2001-2009 Keisuke Nishida /…
Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474
6
votes
2 answers

WCF Service and COBOL VM

We have a currently operating WCF Service and COBOL VM communicating to provide access to data from Vision files. The process works, but we have to limit the WCF Service to [ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single)]. It works, but…
Martin
  • 1,914
  • 1
  • 12
  • 14
6
votes
5 answers

Standard way to remove spaces from input in cobol?

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 " plus some extra text", it has a bunch of spaces to fill…
Shawn J. Goff
  • 4,635
  • 8
  • 34
  • 38
6
votes
3 answers

Porting from Cobol to Java

What differences are there between the top level architectures of Cobol and Java? What are the styles and cultures that programmers adopt in these two languages? How can one best port from Cobol to Java?
6
votes
2 answers

Just out of curiosity, I would like to try Cobol, what is the easiest free cobol to install on Windows

I found this one: http://tiny-cobol.sourceforge.net/download.php Not sure to undestand how to install it on Windows. Any other ?
Rebol Tutorial
  • 2,738
  • 2
  • 25
  • 36
6
votes
3 answers

Convert signed cobol number in ruby

I have an ascii file that is a dump of data from a cobol based system. There is a field that the docs say is PIC S9(3)V9(7).. Here are two examples of the fields in hex (and ascii) and the resulting number they represent (taken from another…
macarthy
  • 3,074
  • 2
  • 23
  • 24
6
votes
3 answers

Moving away from Itanium

We currently have a large business-critical application written in COBOL, running on OpenVMS (Integrity/Itanium). As the months pass, there is more and more speculation about the lifetime of the Itanium architecture. Nothing is said out in the…
Eric Smith
  • 5,262
  • 2
  • 33
  • 49
5
votes
1 answer

How do I call a web service from iSeries COBOL?

We need to be able to call an internal web service from COBOL code running on an iSeries LPAR (V6R1). I worked through the one complete example that I was able to find online here. So, my next step was to try to repeat the process and call one of…
Paul G
  • 2,722
  • 4
  • 37
  • 54
5
votes
5 answers

Interpreting COMP-3 Packed Decimal Fields into numeric values

I am creating an SSIS package to read in unpacked data from a series of copybook files. I am unsure of the correct interpretation of the following field definitions and was hoping someone would know: FIELD-NAME-1 PIC S9(15)V9(3)…
Ham
5
votes
2 answers

COBOL Copybook Specifications for a C# programmer

I am working on an application that requires me to produce a COBOL copybook to define a data file. Does anyone have a good reference on how to write out a copybook?
Jeremy
  • 6,580
  • 2
  • 25
  • 33
5
votes
2 answers

"COPY" statement with "REPLACING" in COBOL

I am getting compilation error as, A "COPY" statement with "REPLACING" phrase was found within a nested "COPY". This is our compilation setting that we can not use REPLACING verb in nested copy. We have one copybook which is having multiple copy…
Manasi
  • 717
  • 8
  • 18
  • 30
5
votes
1 answer

zOS: MODULE INCORPORATES VERSION 3 PROGRAM OBJECT FEATURES AND CANNOT BE SAVED IN LOAD MODULE FORMAT

I'm trying to do the linkage of a hello world in cobol, as in this tutorial, I can compile the program and get the new member in project.group.OBJ successfully, but when I link it with LINK project.group.OBJ(Member) lib('cee.sceelked') I get the…
Sfp
  • 539
  • 4
  • 15
5
votes
4 answers

Data Verification in COBOL

I am in the last course I will have for COBOL in college, and I have to write interacting programs that are supposed to keep track of inventory for a business. I have reached a few parts that I am having problems with. The first is verifying that…
Kimmy1235
  • 919
  • 2
  • 14
  • 24
5
votes
2 answers

What happens if you add a copybook to linkage section instead of adding it to a working-storage section in a sub-program?

What happens if you add a copybook to linkage section instead of adding it to a working-storage section in a sub-program?
Ganesh k
  • 51
  • 2
5
votes
1 answer

Ubuntu GnuCOBOL program DISPLAYs '�' character instead of '£' in edited picture

Unfortunately there is a Part 2 to my earlier question. That link shows a simple COBOL program moving a value to an edited picture that should precede the value with a '£'. As per the answer to the earlier question, it's necessary to explicitly set…