View previous topic :: View next topic |
Author |
Message |
gans79 Beginner
Joined: 31 Aug 2005 Posts: 51 Topics: 27
|
Posted: Thu Sep 08, 2005 6:43 am Post subject: Difference between paragraphs and sections in cobol |
|
|
hi,
1.what is PARA & a SECTION
2. what is difference b/w perform PARA & perform SECTION
thanks
ganesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 08, 2005 8:03 am Post subject: |
|
|
gans79,
COding a cobol pgm using SECTIONS is a very old technique. SECTIONS were used to create overlays to avoid memory constraints as you could have multiple sections in memory at the same time. You no longer need sections. (well not exactly true considering the SORT verb in VS COBOL II(long out of support) requires the input and output procedure names have to be section names.)
Using paragraphs, instead of sections, makes the pgm to be a more readable and clear, in terms of following logic.
Also check this link which might help you
http://home.swbell.net/mck9/cobol/style/section.html
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|