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 Splitting one row into multiple Rows ... Rajan Moorthy DFSORT/ICETOOL 9 Mon May 14, 2018 10:58 pm
No new posts Unique IMS DB identifier ashek15 IMS DB/DC 1 Mon Mar 12, 2018 11:45 pm
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts Using multiple routines at exit 6 in ... Randy Horowitz All Other Mainframe Topics 2 Sat Feb 10, 2018 11:57 pm
No new posts Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am

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