View previous topic :: View next topic
|
Author |
Message |
hsivarama
New User
Joined: 18 May 2006 Posts: 1 Location: Hyderabad
|
|
|
|
can we PERFORM a SECTION if so give me an example |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
yeap, we can perform a section
Eg:
Procedure division.
Perform A1000-INITIALIZE
Perform B2000-MAIN-PROCESS until end-of-file
Perform C3000-CLOSE-FILE.
Go back
A1000-INITIALIZE Section.
A1050-para.
Initialize ws-item1.
A1100-read-para
read file1 .
A1999-exit.
exit.
------
In this program first it will initialize ws-item1 then read record from file1 then pass the control to B2000-MAIN-PROCESS.
Hope it will be helpful |
|
Back to top |
|
|
ap_mainframes
Active User
Joined: 29 Dec 2005 Posts: 181 Location: Canada
|
|
|
|
Yes..Why not??
We can definately perform a section, like we do in case of Paras.
the syntax and all remains the same.
Thanks
ap_mainframes |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
The main difference between section and a paragraph is that all the paras included in a section are executed where as in a para only the code in taht particular para gets executed. |
|
Back to top |
|
|
|