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 

Pros and cons of name-Value pair tables in DB2

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


Joined: 26 Dec 2002
Posts: 47
Topics: 19

PostPosted: Mon Mar 13, 2023 12:28 pm    Post subject: Pros and cons of name-Value pair tables in DB2 Reply with quote

There is a idea to create name value pair tables so that it will be extensible(no need to add columns etc.) but want to understand the pros and cons of it in a Mainframe DB2 Cobol environment. Pease let me know if you have any experiences and inputs on the pros and cons. If there are other related discussions or articles, please let me know. Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Tue Mar 14, 2023 10:33 am    Post subject: Reply with quote

manu,

As far as I know z/OS Db2 does NOT support name value pair tables.
_________________
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort

www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
manu
Beginner


Joined: 26 Dec 2002
Posts: 47
Topics: 19

PostPosted: Thu Mar 16, 2023 8:45 am    Post subject: Reply with quote

sorry for the delayed response. Yes, it is not supported but it will be indirectly done by creating two columns which are generic, the first one will hold the column name and the second one will hold the value. for example

instead of
Key-Column Field1 Field2 Field3 Field4

it will be like below.
Key-Column Generic-field-name field-value
1 Field1 XXXX
2 Field2 YYYYY
3 Field3 AAAA
4 Field4 BBBB

The only advantage I see is that fields can be added with out making physical table changes. I wanted to check whether there are any other advantages in doing this pattern in mainframe DB2 Cobol environment. Please let me know if anyone had implemented something similar and their feedback. Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database 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