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
 

 

Advantages and disadvantages of NATURAL over Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
mithun123

New User


Joined: 13 Apr 2006
Posts: 11

PostPosted: Tue Nov 07, 2006 1:26 pm    Post subject: Advantages and disadvantages of NATURAL over Cobol
Reply with quote

Hi,
Can any one please describe me what are the advantage of Natural over Cobol...
Thanks and Regards,
Mithun :
wink:
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Nov 07, 2006 3:19 pm    Post subject:
Reply with quote

The following is my personal opinion only:

Adventages
- NATURAL, as the name suggests, is more "natural" to write. It is more forgiving with the programmer, as opposed to COBOL, which forces you to stick with very tough syntax.
- The wotk environment and the editor (either NATURAL editor or NSPF) is more comfortable to work.
- More builT-in Functions and system variables then in COBOL (for example, in NATURAL you can use *USER to get the user id, while in COBOL you have to navigate your way through control blocks).
- Modularization: As NATURAL was designed as structured 4th generation language, it supplies many features the make your application writing morE modular.
- Much of the work is done for you by NATURAL, for example: Pseudo-Conversational interactions are handled by NATURAL; Communicating with other CICS programs is done in full transperancy to the programmer etc.
- Comprehensive run time environment which allows the programmer to do almost anything, like interfacing with anything (databases, TSO, ISPF, other languages, HTTP etc.)

Disadventages
- Since NATURAL is an interpreted language (as opposed to compiled COBOL), for big batch processing you might experience some performance issues.
- Interaction with storage and MVS data areas is not straightforward (even REXX is better in this issue).
- The biggest disadventage: NATURAL wasn't developed by IBM... icon_mad.gif

By the way, you haven't said anything about ADABAS vs. DB2...


O.
Back to top
View user's profile Send private message
mithun123

New User


Joined: 13 Apr 2006
Posts: 11

PostPosted: Tue Nov 07, 2006 3:46 pm    Post subject: Re: What is the advantage and disadvantage of Natural over C
Reply with quote

Thanks ofer71 for all your information !!
Please describe the difference between Adabas and DB2.
Thanks in advance.

Thanks and Regards,
Mithun
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Nov 07, 2006 5:28 pm    Post subject:
Reply with quote

That's more tricky.

Advantages
- First and important: Performance. As far as I know and feel in my daily work, ADABAS is faster then DB2. This argument can be verified at Wikipedia.
- Hierarchy: As opposed to DB2, ADABAS is hierarchical database. This means that you can have parent/child relationships whithin the same record. This saves much time in retrieving data.
- Utilities: ADABAS is delivered with dozens of utilities, which are easier to learn and use then DB2 utilities.
- Regarding NATURAL: ADABAS "speaks" with NATURAL in the same language. You can do most of the programmer's and DBA's work from within NATURAL run-time environment.
- All data is saved in compressed format.
- Less DBA activity in daily maintenance.

Disadventages
- The communication with some languages is shomewhat poor (it took me a month to develop a REXX access to ADABAS).
- Again, it wasn't debeloped by IBM...

O.
Back to top
View user's profile Send private message
hipatnaik
Warnings : 1

New User


Joined: 16 Aug 2005
Posts: 7
Location: NewJersey

PostPosted: Tue Jan 09, 2007 11:07 pm    Post subject: Re: What is the advantage and disadvantage of Natural over C
Reply with quote

Hi,
Can you please tell me for a REXX access to ADABAS? Thanks in advance.

WARNING: START A NEW TOPIC
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Jan 10, 2007 12:13 am    Post subject:
Reply with quote

hipatnaik -

Here's the deal: I interface with ADABAS from REXX in the following method:
1. Format the five essential buffers: Record, Value, Search, Format & ISN.
2. I format an area to be used as Control-Block, then I fill the appropriate positions with control-block information like command-id, command name, file number etc.
3. I allocate DDCARD.
4. I run ADABAS with all 6 areas as parameters.

Please note that this is a very tedious mission to invoke ADABAS directly from within REXX. However, you can do that much simpler if you create "bridges", for example by using Direct ADABAS commands from within COBOL, and invoking that COBOL as a function from REXX. Alternatively, you can invoke NATURAL directly from REXX, and use the STACK parameter to pass parameters to NATURAL.

O.
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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