UNSTRING statement

PERFORM statement in COBOL Program

PERFORM statement transfers control to a block of code that will be executed just once. This could either be a paragraph or a section. Alternatively, it could execute several blocks of code contained in a number of consecutive paragraphs by using the PERFORM THRU construct. You can use the PERFORM verb to execute a block […]

PERFORM statement in COBOL Program Read More »

UNSTRING statement

COBOL SORT statement with Examples

COBOL SORT files are common functionalities of COBOL applications. Sorting is required for sequential processing as the files need to be sorted in ascending/descending order. The COBOL SORT statement creates a sort file by executing input procedures or by transferring records from another file, sorts the records in the sort file on a set of

COBOL SORT statement with Examples Read More »

EVALUATE

Conditional Expressions use in COBOL

Conditional expressions identify conditions that are tested to enable the object program to select between alternate paths of control depending upon the truth value of the condition. Conditional expressions may be used in the EVALUATE, IF, PERFORM, and SEARCH statements. Conditional expressions have a value of “TRUE” or “FALSE”. Conditional expressions can either be simple

Conditional Expressions use in COBOL Read More »

EVALUATE

EVALUATE statement in COBOL Programs

EVALUATE statement is used for conditional processing which helps in eliminating a series of nested IF statements to test several conditions. The EVALUATE statement is very similar to the CASE construct common in many other programming languages. If none of the EVALUATE satisfies, by default the statements coded under WHEN OTHER will be executed and

EVALUATE statement in COBOL Programs Read More »

UNSTRING statement

Find Duration – Add – Subtract – MOD Duration using COBOL

The FIND DURATION function is used to calculate duration between: The FIND-DURATION function returns an integer in the form of complete units of the specified duration. Any rounding is done downwards. The calculation of durations includes microseconds.  The function type is integer.  The function result is a nine-digit integer. If the function result is larger

Find Duration – Add – Subtract – MOD Duration using COBOL Read More »

UNSTRING statement

File Handling Verbs in COBOL Programs

The collection of records belonging to the same entity is known as File. These records are stored permanently. File handling helps to organize these records in an ascending/descending order. It makes searching, accessing these records more easily and efficiently. The records are generally stored on a magnetic tape or a disk. Advantages of File Handling Disadvantages of File

File Handling Verbs in COBOL Programs Read More »

EVALUATE

COBOL Interview Questions with Answers

COBOL or Common Business Oriented Language is an English like compiled programming language used mainly for business COBOL Interview questions with answers will help you prepare for technical interviews and online selection tests during campus placement for freshers and job interviews for professionals. COBOL Interview questions with answers 1. What is the distinction among INCLUDE

COBOL Interview Questions with Answers Read More »

EVALUATE

UNSTRING statement use in cobol program

The UNSTRING statement used to separate single string to multiple based on the delimiter provided in the UNSTRING. It needs at least two destination identifier or literals. It can only separate alphabetic and alpha-numeric items. END-STRING, DELIMITED BY, TALLYING, WITH POINTER, ON OVERFLOW and NOT ON OVERFLOW clause is optional in UNSTRING usage. UNSTRING statement

UNSTRING statement use in cobol program Read More »

UNSTRING statement

STRING statement use in cobol program

STRING statement strings together the partial or complete contents of two or more data items or literals into one single data item. STRING needs at least two identifiers or literals. It can only concatenate alphabetic and alpha-numeric items. It will remove multiple instances of delimiter character and consider multiple spaces as a single space. END-STRING,

STRING statement use in cobol program Read More »

UNSTRING statement

Intrinsic Functions in COBOL Programs

COBOL Intrinsic Functions provides many ways to manipulate data. These are a set of functions that return values from a specific algorithm on input arguments. Intrinsic Functions are available for mathematics, character manipulation, date/time and statistics, and financial work. These functions are elementary data items that will return a numeric (whole or decimal) or an

Intrinsic Functions in COBOL Programs Read More »

EVALUATE

USAGE and COMP Declaration

USAGE and COMP: USAGE CLAUSE -There are two general forms of internal representation – computational and display (Usage and Comp). Only numeric data items can be displayed as computational, and as the name suggests, an item specified as computational can take part in arithmetic operations more efficiently.  Whether a data item is computational or display, it

USAGE and COMP Declaration Read More »

Scroll to Top