How to display the index.(displacement from an array)
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / sreeji
we cant display index variable. we can display subscript
| Is This Answer Correct ? | 13 Yes | 7 No |
Answer / guest1
I tried to redefine a the index variable by a zoned
variable. But not thing displayed..
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / shan
The above set statements are correct but the variable which
you are going to display should be defined as usage is index.
| Is This Answer Correct ? | 3 Yes | 6 No |
Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?
How do pass the values to the parameters in cobol
what happens when a copybook variables are declared using include statement ?
01 a pic s9(5) value '-12345' how it will be stored
what is a load module ?
how the control comes back from subprogram to mainprogram
level number 77 is used to define a)group data b)elementary data c)redefine d)none
Minimum how many Number of Paragraphs are there in ID- Divison?
what is difference between the sysabend and userabend?
What are options have been removed in COBOL 11?
01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy
perform I from 0 by 1 until I=5?How maney times it will executes