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
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.
What are the pertinent COBOL commands?
) How do u handle errors in BMS macro
Can we redefine the field of x(200) to less than 200?
Name the divisions, which are available in a cobol program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
What are the different open modes available in 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)?
What is the difference between PIC 9.99 and 9v99 in COBOL?
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?
How can you get the ksds file records into your cobol program?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Define static linking and dynamic linking.
What is a SSRANGE and NOSSRANGE?