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 |
Explain complete concept of table handling in COBOL with an example?
What care has to be taken to force program to execute above 16 Meg line?
I have a variable account-number declared as comp-3, s9(10) comp-3 in a file. How do i find a particular account number say 123456 in that file?
Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.
What are the divisions in a cobol program? Which one is the mandatory division among them?
wht is load module and object module ?
after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)
) What is the use of IGNORE?
can any one help -s806
What are the steps you go through while creating a COBOL program executable?
.How to add one input & one Out file in existing cobol program. how approach tell me step by step.
In an array processing what is the thing that can be done by using subscripts but not by using index