How to display the index.(displacement from an array)

Answers were Sorted based on User's Feedback



How to display the index.(displacement from an array)..

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

How to display the index.(displacement from an array)..

Answer / sreeji

we cant display index variable. we can display subscript

Is This Answer Correct ?    13 Yes 7 No

How to display the index.(displacement from an array)..

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

How to display the index.(displacement from an array)..

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

Post New Answer

More COBOL Interview Questions

1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

0 Answers   IBM,


Explain call by context by comparing it to other calls.

1 Answers  


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.

6 Answers   Accenture,


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

6 Answers   Wipro,


how to code in cobol while using variable block file?

1 Answers  






What are the different rules to perform a Search?

0 Answers  


which is better comp or comp-3 in terms of memory utilization?

6 Answers  


In COBOL, what is the different between index and subscript?

0 Answers   TryTechnicals Pvt Ltd,


Can anybody give me example of subscript and index

5 Answers  


i want to enter the name 'pandu' into ur table how?

1 Answers   Fidelity,


How do u initialize an array?

2 Answers   CTS,


Give some advantages of REDEFINES clause?

2 Answers   Syntel,


Categories