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


Please Help Members By Posting Answers For Below Questions

) what is the difference between AID and HANDLE AID?

1635


What rules are to be followed while using the corresponding options?

638


What is the difference between Call and a Link?

697


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2098


What the difference is between continue and next sentence?

659






What kind of error is trapped by on size error option?

740


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

823


A table has two indexes defined. Which one will be used by the SEARCH?

757


What are the rules of the move verb?

706


What is report-item in COBOL?

711


which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1023


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6829


i want a program using by if, evaluate , string, unstring, perform, occurs?

4057


What are the different rules of SORT operation?

698


Write a program to enter and display the names of students in a class using the occurs clause.

652