Page 1 of 1

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

Posted: Mon Jan 04, 2016 4:34 pm
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.

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

Posted: Mon Jan 04, 2016 4:54 pm
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.

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

Posted: Tue Jan 05, 2016 1:29 am
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.

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

Posted: Tue Jan 12, 2016 10:43 am
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.

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

Posted: Tue Jan 12, 2016 11:08 am
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.