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 AID and HANDLE AID?
What rules are to be followed while using the corresponding options?
What is the difference between Call and a Link?
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?
What the difference is between continue and next sentence?
What kind of error is trapped by on size error option?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
A table has two indexes defined. Which one will be used by the SEARCH?
What are the rules of the move verb?
What is report-item in COBOL?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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?
i want a program using by if, evaluate , string, unstring, perform, occurs?
What are the different rules of SORT operation?
Write a program to enter and display the names of students in a class using the occurs clause.