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
What is the difference between Global and External Variables?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Difference between cobol and cobol-ii?
What are the different rules for performing sort operation?
What is the LINKAGE SECTION used in COBOL?
Write a program to explain size error.
Difference between array and sub-script ?
What is the Purpose of Pointer in the string?
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
What is redefines clause in COBOL?
What are the cobol coding sheets?
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?
What is inspect in cobol ?