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     [CLOSED] Using Functions In WebFOCUS InfoAssist To Get Records Past A Particular Date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Using Functions In WebFOCUS InfoAssist To Get Records Past A Particular Date
 Login/Join
 
Member
posted
Please I am trying to pull records that are older than a set date.

After researching, I discovered that I could use the AYM or DATEADD function in InfoAssist.

But when I use this, I get the message "FOC36355. INVALID TYPE OF ARGUMENT..."

Since I was using the Interactive InfoAssist tool, my code was:

AYM(SYSDATE_DATE, 6, FROM_DATE)

Please how do I rectify this?

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 1 | Registered: March 28, 2012Report This Post
Virtuoso
posted Hide Post
AYM only works for a Year/Month value (such as 201204), not a full date.

You may need to use AYMD instead, or create a virtual /YYM field first and do AYM on it but I have not used InfoAssist so am not aware of what it does/doesn't allow.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Member
posted Hide Post
DATEADD is way easier to use in my opinion.
2 Computes
 COMPUTE TDAY/MDYY = '&MDYY';
COMPUTE FROM_DATE/MDYY = DATEADD(TDAY, 'M', -6); 

First on is a MDYY called TDAY and has today's date in it and for the second set a compute up as MDYY as FROM_DATE.
That would get you a date 6 months ago from today(the day the report is run) in MDYY format(10/04/2011).
Then do a
  WHERE <your date field> LE FROM_DATE;


WebFOCUS 8.1.05
Windows-iSeries DB2, All Outputs
HTML
 
Posts: 29 | Location: Cincinnati, OH | Registered: August 23, 2011Report 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     [CLOSED] Using Functions In WebFOCUS InfoAssist To Get Records Past A Particular Date

Copyright © 1996-2020 Information Builders