what r the types of perform statement
Answers were Sorted based on User's Feedback
Answer / jegadeesan
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
Suggestions are welcome
JRamu
| Is This Answer Correct ? | 26 Yes | 2 No |
Answer / ajayre
Totaly 5 types of perform statements are there
1.Simple perform
2.PERFORM TIMES
3.PERFORM UNTIL
4.PERFORM VARYING
5.Perform with test after/test before.
They are two types of performs are there.one is INLINE
PERFORM and another one is outline perform .
Inline perform start and end with perform and end-perform
Outline perform start and end with perform and exit.
Ajay
| Is This Answer Correct ? | 25 Yes | 5 No |
Answer / malay
There are two types of performs statements in COBOL program.one is INLINEPERFORM and another one is OUTLINEPERFORM.Inline perform start and end with end-perform.
Outline perform start and end with exit statement.generaly these are
1.Simple perform
2.PERFORM TIMES
3.PERFORM UNTIL
4.PERFORM VARYING
5.Perform with test after/test before.
| Is This Answer Correct ? | 9 Yes | 2 No |
Answer / ananta bajpai
there main
1.perform [proc-name[{thru/through}end-proc]]repeat-count N
times[statement end-perform]
2.perform [para-name/proc-name{thru/through}[end-proc]]
[statement end-proc]
3.perform [proc-name{thru/through}[end-proc]][with test
{before/after}]varying variable from integer by increment
until condition[statement end-perform]
4.perform[proc-name{thru/through}end-proc]]varying variable-
name from integer by incremental until condition [statement
end-perform]
5.perform proc-name
6.perform n(number) times.
| Is This Answer Correct ? | 4 Yes | 1 No |
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How many maximum number of procedures can we write in one COBOL program?
how to display the dataset information?
hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?
Whtz the specialty of 77 level number ?
what is the difference between implicit and explicit scope terminator with example?
what is call by value and call by reference ?
3 Answers Infosys, ITC Indian Tobacco Company,
which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks
what is the difference between start and startbr?
What are options have been removed in COBOL 11?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?