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     AYMD Function had to be modified for 534. What else?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
AYMD Function had to be modified for 534. What else?
 Login/Join
 
Platinum Member
posted
Hi Everyone

On this ongoing topic of migrating to 534... I just discovered that the following code, which worked fine on 52, no longer works...

-SET &TODAY=&YYMD;
-SET &YESTERDAY=AYMD(&TODAY,-1,'YYMD');
-TYPE &YESTERDAY

(FOC36355) INVALID TYPE OF ARGUMENT #3 FOR USER FUNCTION AYMDI


I fixed it by changing it to
-SET &YESTERDAY=AYMD(&TODAY,-1,'I8');

OK first of all this is really annoying because we use AYMD in a million places. But I am wondering, is this actually documented? What other functions will no longer work or require modifications? Is there a list somewhere?

Thanks

Jodye
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
It's not surprising that you'd need to use the I8 format since you are performing a numerical function on the date. Yes, I know that you can do this with smart dates as well, but if you're working in dialogue manager, one really doesn't know the format.

The keysheet even indicates that when using AYM or AYMD, that the output format should be I6YYM or I8YYMD.

Ken
 
Posts: 177 | Location: Calgary, Alberta, Canada | Registered: April 25, 2005Report This Post
<DocServices>
posted
Hi Jodye,

All functions are documented in the WebFOCUS Using Functions manual (DN4500583.0904).

I hope this helps.

Best,
Jennifer
 
Report This Post
Virtuoso
posted Hide Post
All I want to do is Subtract 1 month from the end of the month, so I can have a month range that will automatically run each month...scheduled at month end.


I cannot...no matter what I do...and how much documentation I read, or old posts, seem to get AYM to work.

Anyone?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
THIS WORKS
DEFINE FILE CAR
CURR_DATE/YYMD WITH COUNTRY='&YYMD';
BEG_CUR_MO/YYMD=DATEMOV(CURR_DATE,'BOM');
END_CUR_MO/YYMD=DATEMOV(CURR_DATE,'EOM');
BEG_PRIOR_MO/YYMD=DATEADD(BEG_CUR_MO,'M',-1);
END_PRIOR_MO/YYMD=DATEMOV(BEG_PRIOR_MO, 'EOM');
END
TABLE FILE CAR
PRINT CURR_DATE AS 'CURRENT,DATE'
BEG_CUR_MO AS '1ST DAY,CURRENT,MONTH'
END_CUR_MO AS 'LAST DAY,CURRENT,MONTH'
BEG_PRIOR_MO AS '1ST DAY,PRIOR,MONTH'
END_PRIOR_MO AS 'LAST DAY,PRIOR,MONTH'
END


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Expert
posted Hide Post
jodye, we encountered the same exact problem in testing 53, and i used TEXTPAD to find all the AYMD functions in all my fexes.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     AYMD Function had to be modified for 534. What else?

Copyright © 1996-2020 Information Builders