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 Global and External Variables?

666


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

711


Difference between cobol and cobol-ii?

715


What are the different rules for performing sort operation?

766


What is the LINKAGE SECTION used in COBOL?

895






Write a program to explain size error.

677


Difference between array and sub-script ?

1169


What is the Purpose of Pointer in the string?

643


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

859


What is redefines clause in COBOL?

851


What are the cobol coding sheets?

666


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

1933


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1525


What is inspect in cobol ?

806