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
 

 

sections and paragraphs

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

New User


Joined: 16 Feb 2004
Posts: 6

PostPosted: Mon Feb 16, 2004 10:28 pm    Post subject: sections and paragraphs
Reply with quote

THIS IS AN INTERVIEW QUESTION ASKED SOMETIME BACK.

what is the difference betwee section and paragraph.
*how do you recognize the begining of the section.


*how do you know, that the procedure ended.


Kris
Back to top
View user's profile Send private message

mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1203
Location: India

PostPosted: Tue Feb 17, 2004 8:21 am    Post subject: Re
Reply with quote

1. Group of paragraphs is is a section. COBOL has pre-defined sections and user defined sections.

For example INPUT-OUTPUT SECTION, WORKING-STORAGE SECTION are pre-defined. You can define your own section in Procedure Division. (for example, SORT / MERGE I/O procedure sections)

2. I can't get your second question. If you are asking about cobol subprograms, the answer is: GO BACK or EXIT PROGRAM. If you are asking about JCL, the answer is PEND.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Feb 18, 2004 12:29 am    Post subject:
Reply with quote

Hi kris,

There are 2 ways to end a SECTION:

1) End the pgm code.
2) Code the next SECTION.

This has been the cause of much Pgmr grief because failing to code SECTION after your section ends results in all the following pgraphs to become part of that previous section.

I kept forgetting to code SECTION so I opted for the less sexy but safer THRU. icon_smile.gif

Regards, Jack.
Back to top
View user's profile Send private message
kris

New User


Joined: 16 Feb 2004
Posts: 6

PostPosted: Thu Feb 19, 2004 2:54 am    Post subject:
Reply with quote

Thank's friends, for your response and answers.

Kris
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 get unique count inside dfsort... Kiruthi R DFSORT/ICETOOL 7 Wed Sep 21, 2011 11:17 am
No new posts SECTIONS= summarization with multiple... madmartinsonxx DFSORT/ICETOOL 1 Sat Aug 06, 2011 1:32 am
No new posts Story about SECTIONS/PARAGRAPHS/&... dbzTHEdinosauer General Talk & Fun Stuff 0 Wed Apr 27, 2011 3:19 am
No new posts SORT making groups or sections with ... sajusmail DFSORT/ICETOOL 6 Thu Oct 21, 2010 7:19 pm
No new posts Stock with SECTIONS=.......... Can so... rmd3003 DFSORT/ICETOOL 4 Fri Jul 16, 2010 2:58 am


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