How to display the index.(displacement from an array)
Answer Posted / naina
Ye we can!!!
The easiest way, which would work in all versions of COBOL
is
SET W-S-VAR-PICS9(9)-USAGE-DISPLAY TO THE-INDEX-U-WANT-TO-
DISPLAY
DISPLAY W-S-VAR-PICS9(9)-USAGE-DISPLAY
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is the difference between next sentence and continue in cobol programing language?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What are the cobol coding sheets?
what are decleratives in cobol?
Write the code implementing the perform … varying.
What is link edit in cobol?
What rules are followed by the search verb.
Difference between array and sub-script ?
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)?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the difference between binary search and sequential search?
Which division and paragraphs are mandatory for a COBOL program?
What are declaratives and what are their uses in cobol?
What are the pertinent COBOL commands?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this