Focal Point
[SOLVED]Rpt Painter:external function or module not found : month

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/884104273

February 16, 2010, 01:38 PM
Marikaki
[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:

  
-SET &MTH 	= EDIT(&PARAMDATE, '99$$$$$$$$');


Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
February 16, 2010, 02:00 PM
Marikaki
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


Hope that helps!
- Neftali.



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.
February 16, 2010, 02:04 PM
njsden
fatboyjim, you just beat me to it Wink



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.
February 16, 2010, 02:06 PM
Marikaki
Thanks You Jimmy, exactly what I need and easy. I am doing baby steps learning BI-Webfocus.


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:13 PM
fatboyjim
Not a problem =) Glad it helped =)


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
February 16, 2010, 02:15 PM
Marikaki
Thanks Neftali; I appreciate the fast speed answer you all gave me.


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, 04:06 PM
Waz
FYI, you cannot use Maintain functions in a report.

Maintain functions are only accessible after the line MAINTAIN [FILE {Master}].

May be a good idea for you to update your signature, so we know what platform and version your using.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

February 16, 2010, 04:25 PM
Marikaki
Thanks for the info. I will update my signature.


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