is there a difference between the table in Cobol and db2?

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

is there a difference between the table in Cobol and db2?

Post by FatimaP12 »

Hi,

I am very new to the mainframes and find this confusing. Is there any difference between the table in Cobol and db2? If they are different is there a significance of using the same name for both? Thanks for you help.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: is there a difference between the table in Cobol and db2?

Post by William Collins »

They are very different.

They use the same name because one comes from nomenclature in the development of the COBOL language in 1959 and one comes from the nomenclature of the development of the idea of the relational database model in the years up to 1970.

It is unfortunate, but there it is. Just treat the words entirely separately in their own contexts.
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: is there a difference between the table in Cobol and db2?

Post by nicc »

A table in COBOL is the equivalent of an array in other languages - however, use 'table' and not 'array' when speaking about COBOL.
Regards
Nic
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: is there a difference between the table in Cobol and db2?

Post by FatimaP12 »

William Collins wrote:They are very different.

They use the same name because one comes from nomenclature in the development of the COBOL language in 1959 and one comes from the nomenclature of the development of the idea of the relational database model in the years up to 1970.

It is unfortunate, but there it is. Just treat the words entirely separately in their own contexts.


Thanks William. Yes, it can be due to nomenclature, I did not think in that direction. Appreciate your reply.
FatimaP12
Registered Member
Posts: 12
Joined: Wed Dec 23, 2015 11:09 am

Re: is there a difference between the table in Cobol and db2?

Post by FatimaP12 »

nicc wrote:A table in COBOL is the equivalent of an array in other languages - however, use 'table' and not 'array' when speaking about COBOL.
Yes, that's what I was confused as in language C we learned about arrays only. But this is a good point. I shall remember it, it will make more professional.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”