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 |
Can we use icetool in cobol program?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
What is 66 level number and where it is used in real time by software developers?
2 Answers ITC Indian Tobacco Company, TCS,
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
how we rectify soc7 and soc4 errors in project?
hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?
The following entries appear in the WORKING-STORAGE SECTION: 01 DATE-TODAY. 05 YY PIC XX VALUE "90". 05 MM PIC XX VALUE "12". 05 DD PIC XX VALUE :31". 01 DATE-EDIT PIC XX/XX/XX. MOVE DATE-TODAY TO DATE-EDIT. (a) 901231 (b) 90/12/31 (c) 31/12/90 (d) 311290
what happens of we dont give time stamp in precompilation process
What type of Call you would use if you don;t want the control back to the calling program?
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc.