Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How To Recognize The First Occurrence of a Field Value
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] How To Recognize The First Occurrence of a Field Value
 Login/Join
 
Gold member
posted
Hello All,

This there a way in the Define section to recognize the first occurrence of a field value.
For example:
Selectval/A1 = IF FST.ACCOUNT_NUMBER EQ '123' THEN 'Y' ELSE 'N';

Thanks to all,
Ken
Z/OC
FOCUS 7.6.5

This message has been edited. Last edited by: Kerry,
 
Posts: 54 | Registered: October 06, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I think you can do something like this:
DEFINE FILE CAR
    FIRST/A1 = IF ACCOUNT_NUMBER NE LAST ACCOUNT NUMBER THEN 'Y' ELSE 'N';
END


The trick being that LAST refers to the previous row.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1643 | Location: Enschede, Netherlands | Registered: August 12, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
If you use Web5622 suggestion, the data must be presorted.

This shouldn't be an issue with an RDBMS, but care must be taken.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.05OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6104 | Location: Land of the Darug people, Terra Australis Incognita | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
[SOLVED] thanks


 
Posts: 54 | Registered: October 06, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] How To Recognize The First Occurrence of a Field Value

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.