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 |
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
Explain call by context by comparing it to other calls.
How to replace the GOTO statement in COBOL without changing the structure of program. e.g. consider following code... I.D. E.D. D.D. P.D. compute C = A + B. GOTO para 100-display. compute D = C - D. GOTO 200-display. some other logic...... ........ GOTO 300-para. ...... ...... GOTO 400-para. Now I want to replacce all GOTO statements without changing the structure and otput of program.
When the working storage variables get allocated? a.At Compile time b.At starting of the run time c.At end of the run time. d.None of these
how to code in cobol while using variable block file?
What are the different rules to perform a Search?
which is better comp or comp-3 in terms of memory utilization?
In COBOL, what is the different between index and subscript?
0 Answers TryTechnicals Pvt Ltd,
Can anybody give me example of subscript and index
i want to enter the name 'pandu' into ur table how?
How do u initialize an array?
Give some advantages of REDEFINES clause?