Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

can we PERFORM a SECTION if so give me an example

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
hsivarama

New User


Joined: 18 May 2006
Posts: 1
Location: Hyderabad

PostPosted: Wed Jun 07, 2006 12:57 pm    Post subject: can we PERFORM a SECTION if so give me an example
Reply with quote

can we PERFORM a SECTION if so give me an example
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Jun 07, 2006 2:04 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ap_mainframes

Active User


Joined: 29 Dec 2005
Posts: 181
Location: Canada

PostPosted: Wed Jun 07, 2006 6:59 pm    Post subject: Re: can we PERFORM a SECTION if so give me an example
Reply with quote

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
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Fri Jun 09, 2006 6:20 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to perform Digest Access Authenti... vasanthz All Other Mainframe Topics 0 Tue Mar 15, 2016 4:47 pm
No new posts PKZIP Query: How to Give Date and Tim... raj_mainframe08 All Other Mainframe Topics 2 Sun Mar 29, 2015 11:05 pm
No new posts Please give me solution(OUTPUT ) for ... sivareddy123 COBOL Programming 4 Mon Feb 02, 2015 1:33 pm
No new posts Why i use TSO REXX give me different ... jackzhang75 CLIST & REXX 11 Tue Aug 05, 2014 12:21 am
No new posts Can any one give me any sample join s... Sanath sekhar Reddy N SYNCSORT 9 Thu Aug 08, 2013 12:03 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us