COBOL Interview Questions
Questions Answers Views Company eMail

When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these

Wipro,

6 11856

i want to use only first 100 records from a file.plz tell me how to write JCL for this(for read,copy,write operations).plz give me details of all posible JCL utilities?

CTS,

7 41821

what is the difference between Normal vaiable and comp variable.

DELL,

5 12434

How to read the last 100 records from a COBOL file. The file contains N number of records.

IBM,

11 37851

What is the significance of the PROGRAM-ID paragraph? If this name doesnt match with the name of the COBOL program, does it make a difference? Is the name specified in the PROGRAM-ID paragraph used as a name for the load module or any such thing?

IBM,

4 15207

How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

Bank Of America,

9 32293

How to display the index.(displacement from an array)

IBM,

4 15916

How to retain the Duplicates in the one records?

CS,

3 8797

How to retrive the 9th records out of ten records using the cobol program ?

UST,

3 9052

i have the following varibles in the working storage 05 ws-A PIC X(30) VALUE 'ABCDEFGHIJKLMNOPQRESTUVWXYZ ' 05 WS-B REDEFINES WS-A 10 WS-B1 PIC X(10). 10 WS-B2 PIC 9(10). 10 WS-B3 PIC X(10). If I Display B1, B2 and B3 respectively, what is the value displayed in B2

9 10976

1) can we display the index?

ADP, IBM,

3 26291

Can we access the a[0] in the array ?

DCL, IBM,

6 10427

what is S04E error in jcl?

IBM, L&T,

11 68860

What is Static,Dynamic linking ?

2 5969

Can we use icetool in cobol program?

3 8005


Post New COBOL Questions

Un-Answered Questions { COBOL }

What are the different rules for performing sort operation?

848


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

922


Which division and paragraphs are mandatory for a COBOL program?

792


Why occurs cannot be used in 01 level in COBOL?

806


What is rmode(24)

766






I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1309


How arrays can be defined in COBOL?

739


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

802


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

766


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.

5226


What is inspect in cobol ?

881


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

4940


Whats the difference between search & search ALL?

5534


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

828


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2121