is it possible to declare index in cobol program?
if it is not why its tell me pls

Answer Posted / kiran

yes it is possible

ex PERFORM TEST AFTER VARYING WS-INDEX FROM
1 BY 1 UNTIL WS-INDEX = 10
DISPLAY "WS-INDEX is now equal to " WS-INDEX
END-PERFORM

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

1115


What are the pertinent COBOL commands?

2623


) How do u handle errors in BMS macro

1508


Can we redefine the field of x(200) to less than 200?

818


Name the divisions, which are available in a cobol program?

685






please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1954


What are the different open modes available in cobol?

718


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

631


What is the difference between PIC 9.99 and 9v99 in COBOL?

732


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?

1230


How can you get the ksds file records into your cobol program?

642


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

714


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

708


Define static linking and dynamic linking.

662


What is a SSRANGE and NOSSRANGE?

820