Blog Posts - Cobol



2 Brainy tips  saving memory in COBOL

These tips save a lot memory in COBOL Programming.

I received my first salary in the “software industry”, as a software developer, at the end of April 1988, almost 30 years ago. I guess it might be interesting–at least just for myself–to go through some of these years and see what I’ve done...
by Aneddotica Magazine on Apr 26, 2016

These areas need more focus in COBOL Language

Below are the list of topics, where every COBOL programmer mostly confused Editing characters. How MOVE will happen during data movement and what could be the end-result. Differences for COMP, Comp-3, COMP-4 and Comp-5 data types Handling internal ar...

These areas need more focus in COBOL Language

Below are the list of topics, where every COBOL programmer mostly confused Editing characters. How MOVE will happen during data movement and what could be the end-result. Differences for COMP, Comp-3, COMP-4 and Comp-5 data types Handling internal ar...

How Program Control happens in COBOL Run-unit

A run unit is a particular number of executable programs that act as a logical unit at run time. A run unit may consist of – one or more separately compiled programs, – one or more nested programs, – a combination of separately compiled program...

How Program Control happens in COBOL Run-unit

A run unit is a particular number of executable programs that act as a logical unit at run time. A run unit may consist of – one or more separately compiled programs, – one or more nested programs, – a combination of separately compiled program...

Searching COBOL Table With SEARCH and Without Serach

Method-1 PERFORM P200-READ-SALES-FILE. MOVE ‘*** NO PART DESCRIPTION’ TO RPT-DTL-PART-DESC. PERFORM VARYING WS-SUB FROM 1 BY 1 UNTIL (WS-SUB > WS-TBL-MAX) OR (IN-PRT-NBR = PART-NBR (WS-SUB)) IF IN-PRT-NBR = PART-NBR (WS-SUB) MOVE PART...

Searching COBOL Table With SEARCH and Without Serach

Method-1 PERFORM P200-READ-SALES-FILE. MOVE ‘*** NO PART DESCRIPTION’ TO RPT-DTL-PART-DESC. PERFORM VARYING WS-SUB FROM 1 BY 1 UNTIL (WS-SUB > WS-TBL-MAX) OR (IN-PRT-NBR = PART-NBR (WS-SUB)) IF IN-PRT-NBR = PART-NBR (WS-SUB) MOVE PART...

COBOL Strings -How to handle Spaces without Using “Trim” function

 In COBOL -85 there is no TRIM function. Below are the best methods to track spaces in input strings. Delimiter is one of the best method to remove spaces. String FIRST-STRING DELIMITED BY SPACES ' ' DELIMITED BY SIZE SECOND-STRING DELIMITED BY SIZE...

COBOL Strings -How to handle Spaces without Using “Trim” function

 In COBOL -85 there is no TRIM function. Below are the best methods to track spaces in input strings. Delimiter is one of the best method to remove spaces. String FIRST-STRING DELIMITED BY SPACES ' ' DELIMITED BY SIZE SECOND-STRING DELIMITED BY SIZE...

COBOL REDEFINES You Can Override Data-type

COBOL REDEFINES Quiz Questions| COBOL REDEFINES Interview Questions. Best COBOL Redefines examples and important rules you can apply for your COBOL development. 01 WS–OLD PIC X(10). 01 WS–NEW1 REDEFINES WS–OLD PIC 9(8). 01 WS&#...

Use these Technics to improve COBOL Program Performance

Don’t open the file until you need it: The OPEN and CLOSE instruction generates a lot of excessive code, so the recommendation is to always put all of your files in the same OPEN and the same CLOSE. Well the default number of buffers in MVS is 5, s...

25 Awesome Things You Can Learn From These COBOL Interview Questions

2 Easy Steps write your COBOL program efficient way

Always use an odd number of digits in a COMP-3 field  Since the COMP-3 field is stored as a single digit in a nibble (half of the byte), with one nibble consuming the space for the sign, we know that every time we reference an even number digit COMP...

What is Sort Status in COBOL

Sort status is like ‘File status’ in COBOL. With sort status clause, you can get sort or merge successful or not in the COBOL. The syntax is: Select file-name assign to dd-name Sort Status IS data-name1. It is two-char field. In the case...

Complete Information on COBOL Indexed files

The below is the life cycle of Indexed files in COBOL program: Defining an indexed file Opening and closing indexed files Reading through a file Adding records to indexed files Looking up records in indexed files Changing records in indexed files Del...

‘SORTWORKdd’ is not mandatory in DFSORT JCL

Why SORTWORKdd is not mandatory: //SORTWKdd DD : Defines a work data set for a sort. Typically not needed, because DFSORT can allocate work data sets for a sort dynamically. Why STEPLIB not needed for SORT JCL: /STEPLIB DD : The DFSORT program would...

Frequently happen COBOL compilation errors

The following are the list compilation errors occurred during compilation of COBOL programs: Misspelling the name of a DIVISION. In Micro Focus Personal COBOL, misspelling IDENTIFICATION DIVISION produces an error of PROCEDURE DIVISION MISSING. This...

Top featutures of DB2 REPAIR Utility

The REPAIR utility repairs or fixes data in tables and their related data structures. The data can be of any type, such as data contained in a table or data that is generally not accessed, such as map pages and index entries. The options of the REPAI...

MQSeries Tutorial for Mainframe Programmers (1 of 5)

Middleware : “Middleware is software that is used to move data from one program to another, shielding the developer from dependencies on communications protocols, operating systems and hardware platforms.” Middleware products tend to fall in one...


Trending Topics

Close