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
 

 

cics usage of section

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

New User


Joined: 29 Dec 2010
Posts: 31
Location: Mumbai

PostPosted: Mon Jan 24, 2011 12:36 pm    Post subject: cics usage of section
Reply with quote

Hi everyone,

Please give me a brief description of the usage of 'SECTION' in the para names. What will be the effect if we dont include 'section' for the para names? How it differs from ordinary cobol pgm where we wont use section keyword.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Mon Jan 24, 2011 2:06 pm    Post subject:
Reply with quote

if you would bother to read the manual,
you would see that when you perform a SECTION,
the return is before the next SECTION.

and a SECTION can cinsist of none or many paragraphs.

your understanding of 'ordinary' COBOL program is faulty.

a COBOL program is a COBOL program. some COBOL programs have imbedded SQL,
others have CALLs to CICS API's, IMS API's,, MQS API'sl...
some COBOL programs have all or just a couple of the above (or some not mentioned).

the functionality of of SECTION vs only PARAGRAPH has nothing to do with API's included.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jan 24, 2011 2:28 pm    Post subject:
Reply with quote

santohsks1987 - I don't understand selection of words in your "subject line"? As Dick has correctly said, the functionality of of SECTION vs only PARAGRAPH has nothing to do with API's included - so what exactly are you looking for with this question?
Back to top
View user's profile Send private message
santohsks1987
Warnings : 1

New User


Joined: 29 Dec 2010
Posts: 31
Location: Mumbai

PostPosted: Mon Jan 24, 2011 2:32 pm    Post subject:
Reply with quote

Sorry guys.......

In CICS we use SECTION keyword. How is the program flow with SECTION and without SECTION. That is how does perform statement works with and without section.

Ex: 1000-main Section.
.......
......
2000-read.
.........
2000-exit.
3000-write.
..........
3000-exit.
.......
1000-exit.
5000-main section.
...............
5000-exit.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jan 24, 2011 2:45 pm    Post subject:
Reply with quote

Suggest you go-through the reply from dbz again and browse through the manuals also.

A SECTION can contain more than one paragraph. Doing a PERFORM of a SECTION means multiple paragraphs may be executed. Having SECTION names in the PROCEDURE DIVISION is not required. Usage of SECTION, I've not seen much in currect times, however, long back when a mainframe could have as little as 64K of memory the SECTION names were numbered and these SECTION numbers were used to define the overlay structure; overlay-structre of the program. This use of SECTIONs allowed swapping of pieces of the program not currently in use out to "auxiliary storage". Since mainframes have more memory these days such a thing is no longer needed.
Back to top
View user's profile Send private message
santohsks1987
Warnings : 1

New User


Joined: 29 Dec 2010
Posts: 31
Location: Mumbai

PostPosted: Mon Jan 24, 2011 2:56 pm    Post subject:
Reply with quote

Thnk u for the replies..... i got the answer i was lookin for.........
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Jan 24, 2011 3:01 pm    Post subject:
Reply with quote

you're welcome, have a good one icon_smile.gif.
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 CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am


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