Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Unique on multiple feilds

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Tue Mar 18, 2008 2:15 pm    Post subject: Unique on multiple feilds
Reply with quote

Can anyone suggest me how to use the UNIQUE command on multiple columns ?

Thanks in advance
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 18, 2008 11:45 pm    Post subject:
Reply with quote

Hello,

Please post an example of your "input" data values and what you want "unique" to accomplish as "output".
Back to top
View user's profile Send private message
biswadeepghosh

New User


Joined: 03 Jan 2008
Posts: 14
Location: Pune

PostPosted: Wed Mar 19, 2008 11:18 am    Post subject: Reply to: Unique on multiple feilds
Reply with quote

Thanks

I need only on row to be displayed for a set of values for all the feilds.


DATA_GRP_ID | VERSION | ACCESS_ID | FUNCTION | QUAL
CD020 01 CA010 R UNIQUE
CD030 12 CA010 R UNIQUE
CD232 01 CAD10 R UNIQUE
CD020 01 CA010 R UNIQUE
CD480 03 CA01W R CLOSE
CD020 01 CA010 R UNIQUE
CD030 12 CA010 R UNIQUE
CD020 01 CA010 R UNIQUE
CD232 01 CAD10 R UNIQUE
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 19, 2008 7:28 pm    Post subject:
Reply with quote

Hello,

Quote:
I need only on row to be displayed for a set of values for all the feilds.
Sorry, but i do not understand what this tells me. If you want "only one row" what would it contain?

Is there a reason the .jpg is posted twice?

Once your requirement is understood, we may be able to offer some usable suggestions.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us