View previous topic :: View next topic
|
Author |
Message |
mithun123
New User
Joined: 13 Apr 2006 Posts: 11
|
|
|
|
Hi,
Can any one please describe me what are the advantage of Natural over Cobol...
Thanks and Regards,
Mithun :
wink: |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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...
By the way, you haven't said anything about ADABAS vs. DB2...
O. |
|
Back to top |
|
|
mithun123
New User
Joined: 13 Apr 2006 Posts: 11
|
|
|
|
Thanks ofer71 for all your information !!
Please describe the difference between Adabas and DB2.
Thanks in advance.
Thanks and Regards,
Mithun |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
hipatnaik
New User
Joined: 16 Aug 2005 Posts: 7 Location: NewJersey
|
|
|
|
Hi,
Can you please tell me for a REXX access to ADABAS? Thanks in advance.
WARNING: START A NEW TOPIC |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
|