perform I from 0 by 1 until I=5?How maney times it will
executes
Answer Posted / pradeep
IT WILL EXECUTE 5 TIMES
COBOL CODE:
IDENTIFICATION
DIVISION.
PROGRAM-ID.
MOVEPGM.
DATA
DIVISION.
WORKING-STORAGE
SECTION.
01 WS-I PIC 9
(2).
PROCEDURE
DIVISION.
A1000-MAIN-
PARA.
PERFORM PARA-X VARYING WS-I FROM 0 BY 1 UNTIL WS-
I=5
STOP
RUN.
PARA-
X.
DISPLAY "TEST2".
OUTPUT:
COMMAND INPUT ===>
********************************* TOP OF DATA ***
TEST2
TEST2
TEST2
TEST2
TEST2
******************************** BOTTOM OF DATA *
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
State the various causes of s0c1, s0c5 and s0c7.
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
Difference between cobol and cobol-ii?
what are decleratives in cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is inspect in cobol ?
What are 77 levels used for?
) How do u handle errors in BMS macro?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
Write a program that uses move corresponding.
Which Search verb is equivalent to PERFORM…VARYING?
What is difference between static and dynamic call in cobol?
What is the compute verb? How is it used?
How arrays can be defined in COBOL?
What is the default value(s) for an initialize and what keyword allows for an override of the default?