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 are the pertinent COBOL
how do you reference the printer file formats from cobol programs
What is the difference between binary search and sequential search?
What is the compute verb? How is it used?
What is the Purpose of Pointer in the string?
how do you reference the variable block file formats from cobol programs
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
How you can read the file from bottom?
Write the code implementing the perform … varying.
How do you reference the following file formats from cobol programs?
What are the different data types in cobol?
Differentiate between structured cobol programming and object-oriented cobol programming.
What is redefines clause in COBOL?
What is a SSRANGE and NOSSRANGE?