When would you use in-line perform?
Answers were Sorted based on User's Feedback
Answer / jana.gadi
we can use in-line perform in the case if the body of the
perform will not be used in any other place of the program
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / lenin
If you want the code to be executed only once, use inline
perform. SO the codes should be enclosed by perform and End-
Perform.
Is This Answer Correct ? | 1 Yes | 2 No |
how do u link sub pgm to main pgm ?
WORKING-STORAGE SECTION. 01 VAR1 COMP-2 VALUE 0. PROCEDURE DIVISION. MOVE 10.2115 TO VAR1. DISPLAY 'VAR1 =' VAR1. GOBACK. 10.2115 is stored as .10211499999999996E 02 in OS VS Cobol 10.2115 is stored as .10211500000000000E 02 in ecobol. Any reason why?
Scenario: I have 3 Input Files.Read the first i/p file and depending on certain business logic, I want to read wither i/p file-2 or i/p file-3.Now, depending on certain business logic applied to the record read from either file-2 or file-3, I decide to write them to either output file-2 or output file-2. Question: How many job steps are necessary to implement a solution for the above.
What are the different rules of SORT operation?
How to open and see copy book ?
In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
How to increase the logical record length of existing PS file?
01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases
Why we are using comp and comp-3 in real time projects?
Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.
how can we code index in an array of cobol pgm?
how to display the dataset information?