MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why COBOL 85 is called BLOCK STRUCTURED LANGUAGE

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
pzmohanty
Beginner


Joined: 20 May 2004
Posts: 97
Topics: 43
Location: hyderabad, India

PostPosted: Mon Apr 03, 2006 1:24 pm    Post subject: Why COBOL 85 is called BLOCK STRUCTURED LANGUAGE Reply with quote

Hi ,

I just read somewhere that , the major enhancement of COBOL 85 over COBOL 74 is the fact that COBOL 85 is a Block Structured Language.

What exactly do we mean by Block Structured language.

Can anybody give me an feature of COBOL 85 which makes it Block Structured language.

Thanks in advance
_________________
Priya Ranjan Mohanty
Consultant
Kanbay Software (I) pvt. Ltd.
Hyderabad
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Mon Apr 03, 2006 2:18 pm    Post subject: Reply with quote

pzmohanty,

I guess you meant Structured programming. Cobol 85 is a structured programming language. Structured programming typically recommends simple, hierarchical program flow structures. The difference between regular programming approach and structured programming is that structured programs get rid of GO TO statements and the whole programs can be represented in a Top-Down design. This design is possible because of existence of 3 basic structures:

a. Sequence Structure: within sequence structure all functions are executed in their physical order. The structure has one entry point and one exit point.

b. Selection Structure: within selection structure execution of the function depends on whether conditions true or false. The structure has one entry point and one exit point.

c. Iteration Structure: within iteration structure the execution of the function will be reiterated over and over again until condition becomes true. The structure has one entry point and one exit point. All these structures have one entry point and one exit point. Because of this if the programs is written by using only these structures, the whole programs will have one entry point and one exit point.


The advantage of structured programming is that once the programs gets rid of GO TO statements and is represented by Top-Down Structure which is visible and easy to understand, as the programs has a specific (hierarchical) structure and it is easy to debug the programs.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group