I have 2 dimensional array with having 100 elements. So how
to find the 11th item in an array?
Answer Posted / neelam saini
i think above answers r worng.
working-storage section.
01 WS-ARR.
02 WS-A OCCURS 10 TIMES.
03 WS-D OCCURS 10 TIMES PIC XX.
01 I PIC 9(2).
01 J PIC 9(2).
PROCEDURE DIVISION.
MAIN-SECTION.
MAIN-PARA.
PERFORM PARA1 VARYING I FROM 1 BY 1 UNTIL I > 10
AFTER J FROM 1 BY 1 UNTIL J > 10.
DISPLAY WS-D(1,2).
STOP RUN.
PARA1.
ACCEPT WS-D(I , J).
| Is This Answer Correct ? | 12 Yes | 16 No |
Post New Answer View All Answers
What is the usage of comp fields in cobol?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What is comp-1 and comp-2?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What is Pic 9v99 Indicates in COBOL?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
How do you reference the fixed block file formats from cobol programs
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What is a SSRANGE and NOSSRANGE?
explain sorting techniques in cobol program?
Name some of the examples of COBOl 11?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
how do you reference the printer file formats from cobol programs
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there