Focal Point
Solved Displaying YEAR_MONTH

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

May 02, 2012, 09:02 PM
Haripriya
Solved Displaying YEAR_MONTH
Hi,

I have capacity_year which is I11 datatype and capacity_month which is I11 datatype. I want to display CYEAR_CMONTH in my report ...

Is there a way to do this?

Please suggest.

Thank you,
priya

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


WebFOCUS 7.7
Windows, All Outputs
May 02, 2012, 09:20 PM
Waz
Have you thought about using a DEFINE or COMPUTE to create the Yesr Month Field ?

This is very simple stuff.
TABLE FILE CAR
PRINT 
COMPUTE YEAR/I11 = 2012 ;
COMPUTE MONTH/I11 = SEATS ;
COMPUTE IYEAR_MONTH/I6YYM = (YEAR * 100) + MONTH;
COMPUTE CYEAR_MONTH/YYM = IYEAR_MONTH ;

WHERE RECORDLIMIT EQ 1
END



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!

May 03, 2012, 03:16 PM
Haripriya
Hi Waz thank you I will try this and see.


WebFOCUS 7.7
Windows, All Outputs
May 10, 2012, 03:38 PM
Haripriya
SOLVED


WebFOCUS 7.7
Windows, All Outputs