what is PERFORM? and its types?

Answers were Sorted based on User's Feedback



what is PERFORM? and its types?..

Answer / mithun paul

Types Of Perform Statement

1. PERFORM PARA-NAME
2. PERFORM PARA-NAME N TIMES
3. PERFORM PARA-NAME UNTIL I > N
4. PERFORM PARA-NAME-1 THRU PARA-NAME-2
5. PERFORM PARA-NAME-1 THRU PARA-NAME-2 N TIMES
6. PERFORM PARA-NAME-1 THRU PARA-NAME-2 UNTIL I > N
7. PERFORM PARA-NAME-1 THRU PARA-NAME-2 VARYING I FROM 1 BY
1 UNTIL I > N
8. PERFORM PARA-NAME-1 THRU PARA-NAME-2 WITH TEST [BEFORE /
AFTER] VARYING I FROM 1 BY 1 UNTIL I > N
9. (IN-LINE PERFORM)
PERFORM I > N
END-PERFORM



Mithun Paul
KMG Infotech Ltd.
Kolkata

Is This Answer Correct ?    11 Yes 1 No

what is PERFORM? and its types?..

Answer / viks

to execute set of statement elsewhere in the prgram.
types :
perform para-name.
perform para1 until condition.
perform para1 n times.
perform para1 thru para4 until condition.
inline perform.
perform varying i from 1 by 1 until condition.
perform para1 with test before/after until condition.

Is This Answer Correct ?    12 Yes 3 No

what is PERFORM? and its types?..

Answer / prasad kulkarni

The perform statement is used to execute group of
consecutive statements written somewhere else in the
program. (JUST LIKE WE CALL FUNCTIONS IN C LANGUAGE).
During execution when a perform statement is encountered, a
temporary departure from the normal sequential execution
takes place and the statements contained in the specified
para are executed and then control implicitely
(automatically) returns to the next statement following the
perform statement.

Is This Answer Correct ?    5 Yes 0 No

what is PERFORM? and its types?..

Answer / rasool

To execute set of statement elsewhere in the program.
4 types are there
1.Simple perform
2.Times perform
3.Until perform
4.Varying Until perform
where as it is used in 2 ways
1.Inline perform
2.Outline perform

Is This Answer Correct ?    5 Yes 1 No

what is PERFORM? and its types?..

Answer / juber

1.simple perform,i.e perform with paragraph.
2.perform until.
3.perform times.
4.perform varying.
5.perform varying before/after.

Is This Answer Correct ?    3 Yes 1 No

what is PERFORM? and its types?..

Answer / vinay gautam

only 2 type of perform are available....

1.IN-LINE PERFORM
2.OUT-LINE PERFORM- iT HAS REMAINING TYPES.....


rEGARDS VINAY

Is This Answer Correct ?    1 Yes 0 No

what is PERFORM? and its types?..

Answer / avinash

PERFORM PARA-NAME.
PERFORM PARA-NAME THRU PARA-NAME.
PERFORM PARA-NAME THRU PARA-NAME UNTIL CONDITION.
PERFORM UNTIL CONDITION
------
------
END-PERFORM.

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More COBOL400 Interview Questions

Explain the difference between section, paragraph and sentences?

0 Answers  


What is the syntax of redefine?

0 Answers  


How to detect record is locked in cobol/400? What is the solution for that?

0 Answers  


What is redefine?

0 Answers  


When search all is used in cobol program without sorted input data

3 Answers  






What is sort?

0 Answers  


How can i change the below code in SQL to cobol/400? EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file WHERE Field 1 = : WS-VAR AND Field 2 = : WS-USERID END-EXEC

2 Answers   HP,


Explain the output procedure?

0 Answers  


Explain the input procedure?

0 Answers  


What are fillers?

0 Answers  


How u detect record is locked in Cobol/400 ? Wat is the solution for that ?

2 Answers   CGI,


Explain how to update data area in cobol 400 program?

0 Answers  


Categories