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 |
I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.
How many bytes do a s9 (7) comp-3 field occupy?
What is file status 39 ?
What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....
How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB
We have 3 programms A,B,C.In the middle of the program A the controls goes to program B and in the middle of the program B control wants to go program C,after completion of program C again control comes to program B and again after completion of program B control comes to program A.How the process will takes and what are the controls we use for that process.If it is possible anybody of you explain with example?
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?
how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)
how many bytes does s9(7)COMP-3 field occupies?
S9(5)V9(2) occupies how many bytes memory ?
Differentiate between structured cobol programming and object-oriented cobol programming.
How do you submit JCL via a Cobol program?