Home > Software > Mainframe > Cobol
Interview Questions   Tutorials   Discussions   Programs   

Cobol - Can anyone please give the example of Inline Perform?




347
views
asked mar August 3, 2014 02:46 AM  

Can anyone please give the example of Inline Perform?


           

1 Answers



 
answered By Mswami   0  
INLINE PERFORM:

When sets 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.

Example:

    PERFORM 
	    ADD A TO B
		MULTIPLE B BY C
		DISPLAY ‘VALUE OF A+B*C ‘ C
	END-PERFORM	



   

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert