Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Julian Date to CICS ABSTTIME blayek CICS 3 Wed Aug 30, 2017 11:15 pm
No new posts Need to track the CICS transaction fr... sam8051 CICS 3 Mon Aug 07, 2017 3:11 pm
No new posts How to Clear all TSQs during CICS sta... Hooman24 CICS 10 Mon Jun 26, 2017 9:46 pm
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us