COBOL Interview Questions
Questions Answers Views Company eMail

how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it

2 20675

How to use the same COBOL program in Batch and CICS on lines? explain with an example

IBM,

1904

In my table having 3000 Records. How can I delete the 500th row? (we don't know what is data inside the table)

Keane India Ltd,

3 8912

sample code for read a 2nd record from last in flatfile how can do?

iNautix,

4 12435

A cobol program to read a file , match it with other if. If match occurs then write it to an output file. If no match then no need to write it.Error log created by program to track any error.

1 6435

what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

IBM, Wipro,

2 20484

I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

IBM,

4 9709

How do get the result of your program directly on your pc?

UST,

1870

What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?

Fidelity,

1 8395

Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.

1 5428

what is difference between cobol and cobol/400

HCL,

1 21541

In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

CSC,

1 4371

have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records...

ITC Indian Tobacco Company, PNP, TCS,

2 8962

i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?

2 5853

have in 100 records in a flat file i want to move records like 1,3,5,7,9,11,.. to Output file1 and 2,4,6,8,10,12,14 .. records moved to Output file2..Pls Provide real time answer..

TCS,

5 10854


Post New COBOL Questions

Un-Answered Questions { COBOL }

Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

619


Have you used comp and comp-3 in your project? And how?

2002


Write a cobol program making use of the redefine clause.

717


What is the difference between goback, stop run and exit program in cobol?

909


Why occurs cannot be used in 01 level in COBOL?

703






Name the sections present in data division.

691


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2711


HOw can I get the negative sign while deduct high value from low value

1777


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2089


Describe the cobol database components?

668


How do define dynamic array in cobol.

659


What are literals?

620


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

695


i need a small 3d program using inline and outline.

1629


) How do u handle errors in BMS macro?

1415