What is an in-line perform ?
Answers were Sorted based on User's Feedback
Answer / sreedevi
When set of statements are used only in one place then we
can group all of them within PERFORM END-PERFORM structure.
This is called INLINE PERFORM. This is equal to DO..END
structure of other languages.
PERFORM
ADD A TO B
MULTIPLE B BY C
DISPLAY 'VALUE OF A+B*C ' C
END-PERFORM
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / tiny
PERFORM ... ...
END PERFORM
When the body of the perform will not be used in other
paragraphs. If the body of the perform is a generic type of
code (used from various other places in the program), it
would be better to put the code in a separate para and use
PERFORM paraname rather than in-line perform.It increases
the readability of the program.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / dk.kannan@gmail.com
in-line perform is nothing but to check the body of the
statement only.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / santosh khot
In-line Perform is included in Cobol II this was not in
Previous version of Cobol. when dont want to take the
control to the paragraph want to execute same code for
number of times with in same in-line perform is used
Syntex is
perform until identifier
....
.....
.....
end-perform.
| Is This Answer Correct ? | 1 Yes | 4 No |
What are the different data types available in COBOL?
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself
wht is the diff b/w if and evaluate stmts ?
Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.
how do u indetify files succesfully executed or not ?
How to resolve the soc4 and soc7 errors?
Write down the divisions of cobol program?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Size of a column has been changed in DB2 table (Suppose it was of 5 characters and later changed to 4 characters) and forgot to change the DCLGEN in COBOL program, what will happen during the execution of code? If the program Abends then what will be the error? If it doesn't abend then hpw the error can be catched?
can you declare redefine in level 01?
How do you submit JCL via a Cobol program?
how to transfer the file from pc to mainframe??