Answer Posted / 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 |
Post New Answer View All Answers
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the Purpose of Pointer in the string?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How are the next sentence and continue different from each other?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What type of SDLC u followed? Why?
How do you get the data to code the BMS macro?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
i need a small 3d program using inline and outline.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
HOw can I get the negative sign while deduct high value from low value
what is the difference between COBOL2 AND COBOL390?