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
How do get the result of your program directly on your pc?
Explain what you understand by passing by value.
What are the various section in data division and briefly explain them.
What is difference between static and dynamic call in cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
) what is the difference between AID and HANDLE AID?
Mention the guidelines to write a structured cobol program?
Difference between array and sub-script ?
How do define dynamic array in cobol.
What is amode(24)?
What is the difference between binary search and sequential search?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
What is rmode(24)
What is amode(31)