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 21239

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

IBM,

2013

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 9335

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

iNautix,

4 12895

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 6738

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 20935

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

IBM,

4 10201

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

UST,

1977

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

Fidelity,

1 8699

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 6120

what is difference between cobol and cobol/400

HCL,

1 21896

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 4641

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 9315

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 6136

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 11404


Post New COBOL Questions

Un-Answered Questions { COBOL }

Why would you use find and get rather than to obtain?

785


What is the use of intialize verb?

870


What guidelines should be followed to write a structured cobol prgm?

778


What type of SDLC u followed? Why?

1648


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1232






I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

11205


what are decleratives in cobol?

1915


What is the difference between a binary search and a sequential search what are the pertinent cobol?

835


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

522


how to access the file from prodution from changeman tool and to submit a file to production

6914


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5255


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8517


What is the problem of ordered sequential files access?

821


What do you understand by psb and acb?

772


How arrays can be defined in COBOL?

750