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
-2
votes
1 answer

Input not being stored in a variable correctly

I am creating a program that serves as a temperature converter (CELSIUS TO KELVIN and VICE VERSA). But I'm having trouble with my codes (or maybe there's a problem in the compiler. Idk). At first, I thought that I was using a wrong formula. But as I…
sab
  • 11
  • 1
-2
votes
2 answers

File handling in COBOL

I wanted to write a cobol program to read a file EMP-GRADE with 4 fields(EMPID,NAME,STREAM,GRADE) and display the details of employees who have scored a grade 'A' in the output. I used on-line Cobol compiler. IDENTIFICATION DIVISION. PROGRAM-ID.…
-2
votes
1 answer

Temperature converter doesn't return correct value

IDENTIFICATION DIVISION. PROGRAM-ID. TEMP1 . ENVIRONMENT DIVISION. DATA DIVISION. …
VIBHAV PANDEY
  • 65
  • 2
  • 9
-2
votes
2 answers

Display generates "Field is out of screen boundary" error

I get Field is out of screen boundary error detected at offset This is my code: IDENTIFICATION DIVISION. PROGRAM-ID. LALABS. ENVIRONMENT DIVISION. CONFIGURATION SECTION. SOURCE-COMPUTER. IBM-PC. …
deibaby03
  • 7
  • 1
  • 4
-2
votes
1 answer

Load data from a comp3 file to informatica

I have a Comp3 file as a source in my mapping. How do I load data in the target. The source defination has fixed length and the Code Page is '7-bit ASCII'. The data is not populated properly. Please help.
user2435056
  • 125
  • 1
  • 2
  • 3
-2
votes
1 answer

How can i use COBOL in my application?

Can i 'merge' COBOL with my application ? I run Classic ASP with JS,Jquery,VBScript and IE 9+ with SQL Server 2000. With not so big database updates( about 500+ inserts in a day). Its a company. If yes, what the best or bests applications that…
Stephenloky
  • 414
  • 6
  • 20
-2
votes
2 answers

USAGE BINARY in COBOL program

I have the following code in a COBOL program. 05 WS-CHARACTER-STRING. 10 WS-CHARS-LOW-VALUES PIC X(08) VALUE X'0000'. 10 WS-CHARS PIC X(08). . . . 05 WS-BINARY …
PSA
  • 43
  • 1
  • 3
  • 12
-3
votes
1 answer

PL/I copybook to COBOL copybook

How to convert PL/I copybook to COBOL copybook. 2 PL_COPYBOOK. 3 FIRST_FIELD CHAR(20). 3 SECOND_FIELD FIXED(5). 3 THIRD_FIELD FIXED(9,0). 3 FOURTH_FIELD FIXED(7,1). 3 FIFTH_FIELD BIT(8). 3 SIXTH_FIELD FIXED BIN(15).
Mohit
  • 1
  • 1
-3
votes
2 answers

Reading a Txt File in Structure - How to read the Occur Clause of Cobol in Struct in C#.net

I am reading a text file which a cobol program reads successfuly. I am writing the replacement code in c#.net using Struct. Here is reference that i am using. https://www.codeproject.com/Articles/7357/How-to-copy-a-String-into-a-struct-using-C Here…
Knight
  • 123
  • 1
  • 1
  • 7
-3
votes
2 answers

Find Prime number using COBOL

I need to find all prime numbers between 1 to 1000 with test cases as :- ENTER DECIMAL NUMBERS-----NEGATIVE TEST CASE Input = 15.2 Output = Please enter a valid number TEST CASE TO CHECK ALPHABETS, SPECIAL CHARACTER Input = AAAAA Output =…
AD23
  • 1
  • 1
  • 4
-3
votes
2 answers

Logic behind COBOL code

I am not able to understand what is the logic behind these lines: COMPUTE temp = RESULT - 1.843E19. IF temp IS LESS THAN 1.0E16 THEN Data definition: 000330 01 VAR1 COMP-1 VALUE 3.4E38. // 3.4 x 10 ^ 38 Here are…
user143252
  • 57
  • 9
-3
votes
3 answers

Cobol Printscreen to file

Rather simple question, that is very complicated in Cobol. I need to print the screen to a file, just take whatever is on the screen and save it. Fileformat of the save is irrelevant, as long as I get the information out of Cobol. Any help with…
-4
votes
1 answer

COBOL PICTURE with V and Comma

I am learning some basics with open COBOL, and here is my question about PICTURE: 999V99 VALUE 12.4 displays "012.40" I would also expect 99,999V99 VALUE 12.4 to produce some reasonable output, but the output is "00,01240" instead. 99,999V99 VALUE…
m_OO_m
  • 5
  • 2
-4
votes
1 answer

Solution for COBOL viewcall response string to java bean

Currently I've a job to rewrite some library which communicate with COBOL Mainframe via ViewCall (Not sure if this is a universal term or not). The response will be a fixed length string according to the copybook. Are there any solutions or approach…
-4
votes
1 answer

I can't display an error message to the user using the screen section in COBOL

I'm building a cobol system and I can't display an error message to the user using the screen section. How can I do this? And how do I get the ESC key that the user presses to return to the menu? I'm using GNUCobol and OpenCobol.
1 2 3
98
99