Click here to Skip to main content
15,886,919 members
Everything / Programming Languages / COBOL

COBOL

COBOL

Great Reads

by David A. Gray
A reference chart that doubles as the engine behind a data structure mapper
by Pero Matić
A Dockerized proof of concept application using React, Node, Python, GnuCOBOL, PostgreSQL, and Docker.
by alex turner
Managed COBOL 101 - Named Generic Delegates
by alex turner
Exception Handling In Micro Focus Managed COBOL

Latest Articles

by Pero Matić
A Dockerized proof of concept application using React, Node, Python, GnuCOBOL, PostgreSQL, and Docker.
by David A. Gray
A reference chart that doubles as the engine behind a data structure mapper
by Helen Withington
What do COBOL developers want?
by Ed Airey
Micro Focus supports platform choice. Which is why the new incarnation of Visual COBOL means that any environment can be customized to offer future flexibility, whatever the profile.

All Articles

Sort by Score

COBOL 

28 Jun 2016 by David A. Gray
A reference chart that doubles as the engine behind a data structure mapper
8 Oct 2011 by Mehdi Gholam
Career language choices usually involve what jobs are out there in the market place.The best advise is to learn as much as you can and see where that takes you, and which language you prefer and is easier for you.What is important is not the language itself but the logical problem...
8 Oct 2011 by Sander Rossel
What do you mean with "a background in C, Java, COBOL, Perl and Python"? That does not sound like you are a starter. Anyway, it's a nice point to start. Pick up any of those languages. Isn't Java the most popular programming language in the world and aren't Java programmers paid the best as well...
1 May 2018 by Pero Matić
A Dockerized proof of concept application using React, Node, Python, GnuCOBOL, PostgreSQL, and Docker.
16 Oct 2011 by Espen Harlinn
If you have a background in COBOL – recruiters for insurance companies have been looking for you for a while – if you can translate COBOL to java and/or c#, and that seems likely, they’ll probably be even happier to have a chat with you ...Best regardsEspen Harlinn
27 Jul 2016 by Suvendu Shekhar Giri
Have never tried to do so but following articles/discussions seems to have some information regarding that-sql server 2008 - Creating MsSql table from Cobol fd file - Stack Overflow[^]Connecting to MySQL or SQL-Server from COBOL using ADO.NET[^]Also check following tool if it...
16 Oct 2011 by Abhinav S
It would depend a lot on the area where you are located and what opportunities you have around you.Java would probably be the right choice in terms of number of opportunities.However, if you can carve a niche for yourself in C and Cobol, you are likely to get paid more as there is less...
3 Jun 2017 by RAMASWAMY EKAMBARAM
Declaring your variable type as PIC 9(5).99 seems perfectly legal - why should the compiler flag an error! But if you had myvar pic 9(5)V99 the 'V' is only an implied decimal point - variable myvar can hold only digits. Coding: move 147.25 to myvar - this will set myvar to 0014725 and if you...
13 Jul 2017 by Andy Lanng
Visual COBOL Personal Edition | Micro Focus[^] I used to work for this company. It was years ago so a lot has changed but they made Visual COBOL so you can flip between COBOL and C# / VB. It compiles out to .Net IL, but it might be useful to you. The problem you will find is that everyone...
31 Mar 2021 by OriginalGriff
So "What you have tried" is to copy'n'paste an incomplete template you were given when you asked this question last time: Write program that will ask customer to choose from menu below, and get the quantity from the chosen menu:[^] and nothing...
19 May 2010 by alex turner
Managed COBOL 101 - Named Generic Delegates
19 May 2010 by alex turner
Exception Handling In Micro Focus Managed COBOL
8 Oct 2011 by M. Danish Farman
I'd like to ask pros out for their opinion, as to what language to choose to begin my professional development career.I'm confused! It's somewhat weird but true!I must also tell them that I do have a background in C, Java, COBOL,Perl, and Python...What makes me feel this way is the...
9 Nov 2011 by SivaSaiKrishna11
hi friends ,What is difference between COBOL-DB2 and sql Thanks in advance siva
9 Nov 2011 by Mehdi Gholam
Read this : http://www.mainframegurukul.com/tutorials/database/db2_tutorials/db2.html[^]
9 Nov 2011 by sravani.v
Refer this:http://www.differencebetween.net/technology/difference-between-db2-and-sql-server/[^]
13 Jan 2012 by CurrentlyBE
How can we print a matrix in actual matrix form.In COBOL after every DISPLAY statement it automatically drops to next line so matrix looks like 1 than 1 2 3 2 4 5 6 3 7 8 9 4 5 6 ...
13 Jan 2012 by CPallini
I guess you may use the WITH NO ADVANCING clause (see, for instance here[^]). Probably you have to add the blanks.
13 Jan 2012 by Richard MacCutchan
It's a long time since I did any Cobol but I would suggest looking here[^].
16 Feb 2013 by H.Brydon
These features of COBOL are built into the compiler, and are not generally available in other languages (with some exceptions: PL/I, ADA).You flagged "C" as your language of interest. These features are not built into the C language, but you might be able to find a library somewhere that...
19 Feb 2013 by lsatenstein
Adding commas using sprintf(), was no challenge. I have tested it with positive and negative numbers between one digit and 16 digits.I need to remove the debugging code and post it here in the next day or two.I have almost completed the formating using the Cobol Picture clause. The...
11 Jun 2013 by Micro Focus
Micro Focus Visual COBOL
11 Jun 2013 by Micro Focus
Take your COBOL application to .NET
11 Jun 2013 by Micro Focus
Take your COBOL application to JVM
11 Jun 2013 by Micro Focus
Create COBOL applications using ASP.NET
17 Sep 2014 by Member 11089303
please help me i keep getting this error "Field is out of screen boundary error detected at offset I tried everything to make it right but the error keeps on showing up. please help me, this is my code:IDENTIFICATION DIVISION. PROGRAM-ID. LALABS. ENVIRONMENT DIVISION. ...
17 Sep 2014 by _Maxxx_
it's been 100,000,000 years since I did any Cobol - but the only thing that looks out of place in that code with regards to the screen is the lineQuote: DISPLAY(26, 15) 'BRANCH NAME:'.which (assuming Display() parameters are Row, Column) would be below the 24th line of a screen, which...
12 Feb 2015 by Member 11372314
I want to process a large text file that was created by a cobol dataset definition on a mainframe in a c# or other visual studio language. I don't want to use Cobol. I want to use the Cobol dataset definition of the file from my C# or other visual studio programA 333 BANKIE BANK FSB ...
13 Jan 2015 by CHill60
The approach we took was to download the dataset definition as an ascii file.We then parsed it (as text) into a dictionary. From that we created classes to hold the data from the file but an XML schema would do - this is the tricky part or the easy part depending on your specific...
1 Feb 2015 by Anshumaan C
An error of type IGYGR1137-s is being showed up while trying to create xsd's. The error description says:"OCCURS DEPENDING ON" object "" was defined in a variably located area.YOu can find the error prone area marked in bold and italics format. Starts from the OLM regionCopybook...
11 Feb 2015 by zalekbloom
Cobol can create different types of files - fix length or variable length or so called VSAM files.Fields in the file can be defined as Characters (string in C#) or numeric.Numeric can be different types - signed or unsigned, COMP-3 (signed of unsigned), COMP (signed or unsigned) and some...
12 Feb 2015 by Member 11372314
This is the solution I am currently working on.This file is tab delimited. Others are not. These files Solution 2 is ideal.The input file contains 15 records per loan number with a total of 477 fields.The goal is to read the tab delimited file, split the records/fields, format the output...
8 Sep 2015 by Dev O'Connor
Good Morning,I am wondering if you can help me, i have a text file that is pipe "|" delimited, the issue i have is that there are several variable types within this, for example5009|0011730|00|0000|0000|0000|N|N|29/03/2007|N| 0|Y| 0| 0| 0.00 |06|655|A| |A| | | ...
9 Sep 2015 by Maciej Los
I would define custom class like this:Public Class MyData Private Var1? As Integer '(Of Nullable) Private Var2? As Integer Private Var3? As Integer Private Var4? As Integer Private Var5? As Integer Private Var6? As Integer Private Var7 As String Private Var8 As String...
3 Dec 2015 by Member 12177493
Hi Richard, Thanks for your reply. My program input path is different for all programs and output path is same. How will i enter this in COBOL runtime ? I am using sun solaris unix machine (ex runcbol progname.cob inputpath outputpath. How will make my cobol changes accordingly. hope u got my...
3 Dec 2015 by Member 12177493
Also How do we take care this script unix command line. please provide me clue. highly appropriated.thanks in advance,
22 Dec 2015 by Ed_Airey
COBOL has been our core business for nearly 40 years and bridging the gap between older and new technologies remains our primary mission. If you’re ready to derive more business value from your business applications, take a look at our COBOL to Mobile solutions.
22 Dec 2015 by Melissa Burns
COBOL has been our core business for nearly 40 years and bridging the gap between older and new technologies remains our primary mission. If you’re ready to derive more business value from your business applications, take a look at our COBOL to Mobile solutions.
22 Dec 2015 by Melissa Burns
These webinars have been created specifically for COBOL programmers who want to learn more about OOP and incorporate it with procedural programming techniques to get the best of both worlds.
19 May 2016 by Helen Withington
What do COBOL developers want?
19 May 2016 by Ed Airey
Micro Focus supports platform choice. Which is why the new incarnation of Visual COBOL means that any environment can be customized to offer future flexibility, whatever the profile.
27 Jul 2016 by mousau
Hi All Any ideas on migrating the Cobol Record types into MSSQL server tables.I am totally blank on this.Explored the tool little bit, however still stuck in the problem.Any solution in this regard will be of great helpRegardsMoumitaWhat I have tried:Still searching for the...
3 Jun 2017 by JohnnyG62
I'm learning COBOL. I have a text file with a numeric field that has a decimal point in it. I have defined the field as PIC 9(5)V99. When a record is read and the field as a decimal point it I get this error not numeric: '.00 '. But if I remove the decimal point from the field in that...
13 Jul 2017 by Member 12140334
Hello: I'm developing an application that integrates an API from a controller supplier. I've been able to do almost everything except a small part and for that I ask for your help. I have already talked to the API / DLL programmer and what is really missing is setting the event so that when a...
6 Mar 2018 by CHill60
Start learning those languages! As you are a Computer Science undergraduate go talk to your (ex?)tutors and peers. Do some research. To be honest, this question stinks of a spam set up for someone promoting some sort of "training" course. At best it is "off topic"
7 Feb 2020 by Richard MacCutchan
compression algorithms - Google Search[^].
7 Feb 2020 by Patrice T
Quote: need to compress more than 5000 characters of data into 100 Bytes Unless your 5000 chars are full of repeated sequences, a ratio of 1/50 is impossible to reach. You need to understand that compression is not infinite and depend on the data to compress. In some cases, the data can be...
7 Feb 2020 by OriginalGriff
It's very unlikely that any generic compression algorithm will get that kind of compression ratio: 5000:100 is compressing data to 1/50th of the original size and unless the data is extremely high in redundancy to start with, that's just not a realistic target. If I create a 5000 character text...
31 Mar 2021 by OriginalGriff
No. You're welcome! We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't...
31 Mar 2021 by Richard MacCutchan
IDENTIFICATION DIVISION. PROGRAM-ID. MENU. DATA DIVISION. WORKING-STORAGE SECTION. * add your data declarations here PROCEDURE DIVISION. * add your procedural code here
31 Mar 2021 by Patrice T
Quote: Write program that ... This means that it is your duty to do the homework. You are learning and homework is training, nobody can do it for you. Do you think Usain Bolt asked someone to train for him when he was a beginner ? You show no...
18 Jun 2010 by alex turner
COBOL already has SEARCH ALL, but what if you want to find table values which bracket a searched value - here is the solution.
19 Jan 2010 by alex turner
How to and the benefits of tightly integrating scripting with native Micro Focus COBOL to produce more customisable and flexible applications.
10 May 2011 by bottomline
We are currently looking to convert our legacy COBOL code from ANSII to UNICODE however we have come across a problem where just changing the PIC X fields to PIC N and setting NSYMBOL(NATIONAL) will cause problems when data structures contain a REDEFINES or RENAME statement with elementary DATA...
11 Feb 2015 by zalekbloom
DISPLAY A B Cwill print in a matrix way 3 variables A B and CIf you original statement was: DISPLAY Xyou have to change your code to move 3 next sequential values of X to A, B and Czb
7 Feb 2020 by rharsha123gmail
we are working on huge data , need to compress morethan 5000 characters of data into 100 Bytes while storing in the DB and while retriving need to uncompress the same . What I have tried: not able to think any possible solution
15 Feb 2013 by lsatenstein
How to?Cobol has an input mask format similar to the following: Using integer 345picture "99999" yields 00345 picture "zzzz9" yields 345 or even "zzzVzz" yields 3.45 "9zzzVzz" invalid (9 to the left of z)."$zzVzz" floating dollar ...
11 Mar 2013 by keyrun maharjan
Move High-Values to Ws-KeyExEC CICS STARTBRFILE(LOGICAL FILE NAME)RIDFLD(WS-KEY)END-EXECEXEC CICS READNEXTFILE(LOGICAL FILE NAME)INTO(WORKING-STORAGE-AREA)END-EXEC EXEC CICS READPREVFILE(LOGICAL FILE NAME)INTO(WORKING-STORAGE-AREA)END-EXECEXEC CICS ENDBR ...
30 Nov 2015 by Member 12177493
I need your inputs on Unix/COBOL part.Currently I am working on Legacy data Migration project. Please give me clue on below questions if you have.My requirement- I have 30 COBOL stand alone programs which is not linked with any COBOL programs, All programs contains logic of reading from...
31 Mar 2021 by Dhoom49
Question Write program that will ask customer to choose from menu below, and get the quantity from the chosen menu: Menu Details Price (RM) 1 Chicken Shawarma Sandwich 7.00 2 Mandy Chicken 14.00 3 Mandy Lamb 18.00 4 BBQ Chicken 13.00 The entire...