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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Extracting a Month name from a numeric month value?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Extracting a Month name from a numeric month value?
 Login/Join
 
Master
posted
I'm having a little trouble finding any documentation on displaying a month's name from a numeric value of 200708.

Is there a way to gather this information?


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Virtuoso
posted Hide Post
As the numeric field doesn't have a 'day' in it, I'd suggest using edit to extract the two digit month and then set up a decode.

Assume it is a numeric 6

monthn/a2 = edit (numeric field,'$$$$99');
monthsp/a12 = decode monthn ( '01' January
'02' February ..... else 'error';


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
Try this.
DEFINE FILE CAR
DATE/I6YYMT WITH COUNTRY=200708;
END
TABLEF FILE CAR
PRINT COUNTRY DATE
END

gives the following results.

COUNTRY DATE
------- ----
ENGLAND 2007 AUG
FRANCE 2007 AUG
ITALY 2007 AUG
JAPAN 2007 AUG
W GERMANY 2007 AUG


FOCUS 7.6 MVS PDF,HTML,EXCEL
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report This Post
Virtuoso
posted Hide Post
I learn new every day, what form gives the month in say spelled out completely.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Great Tips!
It's working well now!


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Platinum Member
posted Hide Post
This gives the full month but only works with smart dates.

DEFINE FILE CAR
DATE/YYMTR WITH COUNTRY='200708';
END
TABLEF FILE CAR
PRINT COUNTRY DATE DATE/YYMtr
END
COUNTRY DATE DATE
------- ---- ----
ENGLAND 2007, AUGUST 2007, August
FRANCE 2007, AUGUST 2007, August
ITALY 2007, AUGUST 2007, August
JAPAN 2007, AUGUST 2007, August
W GERMANY 2007, AUGUST 2007, August


FOCUS 7.6 MVS PDF,HTML,EXCEL
 
Posts: 115 | Location: Chicago, IL | Registered: May 28, 2004Report 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     Extracting a Month name from a numeric month value?

Copyright © 1996-2020 Information Builders