perform I from 0 by 1 until I=5?How maney times it will
executes
Answer Posted / varun v
I agree with Answr #3 and Answer # 3 is correct..
PERFORM I FROM 0 BY 1 UNTIL I=5
........................
........................
END-PERFORM.
would give syntax error.
************************************************************
Correct one is given as below...
PERFORM varying i from 0 by 1 until i = 5
.............
.............
END-PERFORM.
and this should get executed 5 times....
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is comp-1 and comp-2?
What is the difference between structured cobol programming and object alternativelyiented cobol?
State the various causes of s0c1, s0c5 and s0c7.
Which division and paragraphs are mandatory for a COBOL program?
Discuss about changing dataset name in proc.
What is the difference between Global and External Variables?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What is cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the LINKAGE SECTION used in COBOL?
i need a small 3d program using inline and outline.
Give some examples of command terminators?
What are declaratives and what are their uses in cobol?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning