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     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