is it possible to declare index in cobol program?
if it is not why its tell me pls
Answers were Sorted based on User's Feedback
Answer / amjith pillai
No need to 'Declare' Index in working Storage section.since
Index is internally represented by 'Index Register' which
is Full-Word binary.
Yes, you can directly mention Index in Occurs clause and
can increment and re-positioning the index variable
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / 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 |
What is the difference between NEXT SENTENCE and CONTINUE?
how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array
What are all the divisions of a COBOL program?
Difference between cobol and cobol-ii?
Can a Search can be done on a table with or without Index?
is this below syntax correct? CALL 'subprg' using A,B Please help
what is label record is standard or omitted in file description of data division?
How much salary you are expecting? If they ask in an interview, what we have to tell?
6 Answers Tech Mahindra, Wipro,
what is index and how to use two tables using index?
Should I use STOP RUN in the sub program??why?
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?