Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to select distinct sequential numbers

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to select distinct sequential numbers
 Login/Join
 
Silver Member
posted
Hi everyone,

I have a problem with selecting distinct sequence (SEQ) numbers as in the following example:
  
DCN         SEQ
00010       002
00010       002
00010       001
00010       002
00010       003
00010       004
00010       004
00010       004
00010       003
00010       004
00020       002
00020       002
00020       003
00020       004
00020       004
00020       002
00020       005

I would like the result has the distinct squential numbers as following:

DCN         SEQ
00010       001
00010       002
00010       003
00010       004
00020       002
00020       003
00020       004
00020       005


Thanks,
PPku

This message has been edited. Last edited by: Kerry,


Thanks,
Pku

Focus, WebFocus 8201 on Windows
 
Posts: 43 | Registered: May 28, 2008Report This Post
Expert
posted Hide Post
TABLE FILE CAR
PRINT DST.RETAIL_COST
BY COUNTRY
BY CAR 
END

Use the DST. prefix operator.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Thanks, Ginny.

I got it by using a hold file.
  
TABLE FILE SAMPLE
PRINT
  DST.DCN
  SEQ
BY DCN NOPRINT
BY SEQ NOPRINT
ON TABLE HOLD AS HOLD1
END

TABLE FILE HOLD1
SUM
 DCN
 SEQ
BY SEQ NOPRINT
BY DCN NOPRINT
END


Pku

This message has been edited. Last edited by: Pku,


Thanks,
Pku

Focus, WebFocus 8201 on Windows
 
Posts: 43 | Registered: May 28, 2008Report This Post
Virtuoso
posted Hide Post
Pku,

If all you need is the list of DCNs and of distinct SEQs you could do:
  
TABLE FILE SAMPLE
BY DCN
BY SEQ
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How to select distinct sequential numbers

Copyright © 1996-2020 Information Builders