COBOL Interview Questions
Questions Answers Views Company eMail

how to fetch the record before the last record in a cobol file( its a huge file and if the key field is not known)

IBM,

5 16878

what is the meaning of pic 9(09)v99-

HSBC,

4 21045

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

2711

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

IBM,

2001

Why we are using comp and comp-3 in real time projects?

IBM,

4 13568

Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

IBM,

2043

How to code fscode 10 in cobol program? Where yoy code in your pgm?give ans for the question.

IBM,

2 9088

how to check whether the open command of a sequential file is successful? or not?

CSC, IBM,

2 13402

Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks

2317

In INITIALIZE what is Repalcing Word will do

CTS,

1 9431

How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

Infosys,

3703

How can you add a particular field in copybook?

L&T,

2 4160

How can you add a particular field/coloumn in copybook?

ADP, DELL, L&T,

3 20927

what is the difference between implicit and explicit scope terminator with example? 

1 7719

I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

IBM,

3 15211


Post New COBOL Questions

Un-Answered Questions { COBOL }

if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5650


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 ......

10524


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

806


Can a Search can be done on a table with or without Index?

794


What are literals?

618






How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

371


Write the code to count the sum of n natural numbers.

695


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

6656


what are decleratives in cobol?

1816


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

915


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)?

618


What rules are to be followed while using the corresponding options?

627


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2043


What the difference is between continue and next sentence?

647


How are the next sentence and continue different from each other?

752