[SOLVED]Rpt Painter:external function or module not found : month
Hi folks,
What do I need to be able to use the MONTH function within Report Painter?
Error I got:
-SET &MTH = MONTH(02/16/10);
0 ERROR AT OR NEAR LINE 51 IN PROCEDURE _get_ly_wkd.fexFOC
(FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: MONTH
This message has been edited. Last edited by: Marikaki,
Marikaki
WF 7.7.03m, MRE, BI Dashboard, DevStudio, Report Caster, Windows 7, I.E. 8/9, Apache Tomcat 6.0, Derby Output formats: Excel2K, PDF, HTML, AHTML
February 16, 2010, 01:52 PM
Dan Satchell
I don't believe there is a MONTH function in WebFOCUS or MAINTAIN. There is such a function in SQL.This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
February 16, 2010, 01:59 PM
fatboyjim
Hi Marikaki,
If you know that the month is always the first 2 characters, you may want to try using:
I found it in the web Maintain-specific Date and Time Functions documentation.
Is there any easy way to get the month using SET command?
Marikaki
WF 7.7.03m, MRE, BI Dashboard, DevStudio, Report Caster, Windows 7, I.E. 8/9, Apache Tomcat 6.0, Derby Output formats: Excel2K, PDF, HTML, AHTML
February 16, 2010, 02:03 PM
njsden
As Dan says there is not such a function (at least that I know of) in WebFOCUS.
If your DATE value resides in a dialog manager &variable (as your example leads me to believe) you may use the EDIT function to extract the piece corresponding to the month.
-SET &MTH=EDIT(&YYMD, '$$$$99$$');
If your value is in an actual DATE field, you have more options; for example, have a new date field with "M" format and assign your actual DATE value to it.
DEFINE FILE CAR
MYDATE/YYMD WITH CAR = &YYMD;
MYMONTH/M = MYDATE;
END
TABLE FILE CAR
PRINT
CAR
MYDATE
MYMONTH
END