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     find last modified record

Read-Only Read-Only Topic
Go
Search
Notify
Tools
find last modified record
 Login/Join
 
Master
posted
Hi,
Having problem in finding the last modified record.

Ex:

Values getting from the master file is below.

no name status action date
1 kamesh 6 create 01/10/05
1 kamesh 6 modify 01/11/05
1 kamesh 6 modify 01/12/05
1 kamesh 6 modify 01/13/05
1 kamesh 6 approve 01/13/05

The output has to be look like below.
output
------
1 kamesh create 01/10/05
1 kamesh modify 01/13/05
1 kamesh approve 01/13/05

If I tried using FST or LST by SUM the records, the status getting added for modify. Can anyone suggest me how we can solve this problem?

Thanks
Kamesh
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Master
posted Hide Post
Try a table request SUM fields BY no BY name BY status BY action BY HIGHEST date
 
Posts: 865 | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Had a problem when we sum the records all the numeric fields are getting added. I solved it by change that numeric field in to alpha. Now it's seems working.

Thank's for the reply.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
<Zushi Hitoshi>
posted
Hellow from Japan.
I am Zushi.
How is the following..

TABLE FILE modify_records
PRINT no name status
BY action
BY date
ON TABLE HOLD AS HOLD0001
END
TABLE FILE HOLD0001
SUM no name status action LST.date
BY action
END
 
Report This Post
Virtuoso
posted Hide Post
Or simply

TABLE FILE filename
WRITE
FST.numeric_field1 AS numeric_field1
etc.
BY no
BY name
BY TOTAL date NOPRINT
BY action
BY HIGHEST 1 date
END
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
<Sugiyama>
posted
I think so.

DEFINE FILE filename
WSEQ/I3=WSEQ+1;
END
TABLE FILE filename
SUM CNT.ACTION NOPRINT
BY NO
BY NAME
BY ACTION
PRINT WSEQ
DATE
COMPUTE WCNT/I3=IF NO|NAME|ACTION NE
LAST NO|LAST NAME|LAST ACTION
THEN 1 ELSE WCNT2+1; NOPRINT
BY NO
BY NAME
BY ACTION
WHERE TOTAL C1 EQ WCNT
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT NO
NAME
ACTION
DATE
BY WSEQ NOPRINT
END

Good Luck!
 
Report 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     find last modified record

Copyright © 1996-2020 Information Builders