Perform2 - PERFORM OneLevelDown DISPLAY "Back...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
$ SET SOURCEFORMAT"FREE" IDENTIFICATION DIVISION. PROGRAM-ID. PerformFormat1. AUTHOR. Michael Coughlan. * Illustrates how the first format of the PERFORM may * be used to change the flow of control through a program. * Use the output of this program to get an understanding of how * this format of the PERFORM works. * PROCEDURE DIVISION. TopLevel. DISPLAY "In TopLevel. Starting to run program"
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PERFORM OneLevelDown DISPLAY "Back in TopLevel.". STOP RUN. TwoLevelsDown. DISPLAY ">>>>>>>> Now in TwoLevelsDown." PERFORM ThreeLevelsDown. DISPLAY ">>>>>>>> Back in TwoLevelsDown.". OneLevelDown. DISPLAY ">>>> Now in OneLevelDown" PERFORM TwoLevelsDown DISPLAY ">>>> Back in OneLevelDown". ThreeLevelsDown. DISPLAY ">>>>>>>>>>>> Now in ThreeLevelsDown"....
View Full Document

This note was uploaded on 03/02/2011 for the course COMPUTER A BCA taught by Professor Nandakumar.g during the Spring '11 term at University of Madras.

Ask a homework question - tutors are online