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 |
is it mandatory to give data division before procedure division ? wht happens if i give procedure division first thn data division ? reply soon
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?
How do define dynamic array in cobol.
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
How to covert given string into ASCII value in COBOL/MF COBOL
What does the INITIALIZE verb do?
how to submit a jcl by cobol program. clear me with an example.
without performing any operations on a file how can i know whether it contains data or not
What will happen if we generate GDG (+2) version without generating (+1) version?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
Hi all, I have a following requirement to write the cobol program. I have to load the 129 variables from input sequential file which are in excel sheet to the cobol inernal table. and after loading into table i have to compare this data with the business file. here compare means controlling the data whether the format(numeric,alpha) is same in the business file and in the table??? i have the same data in input and business file. could anyone please give me any idea of the logic?// i have all the 129 different variables(129rows,1 column)is there .