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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Month Function
 Login/Join
 
Member
posted
Reading through the help contents on WF 5.3.3, I came across this:

----------
Example: Extracting the Month From a Date
MONTH extracts the month from each value in the DATE field:

MONTH(DATE)The following are sample values for DATE and the corresponding values for MONTH(DATE):

DATE MONTH(DATE)
---- -----------
01/01/2000 1
02/01/2000 2
03/01/2000 3

------------

My goal is to extract only the month from a field, but is this the way to go about it? And, if it is, how is it used in a define statement?

My define statement:

CUR_MONTH/YYMD = 20050630;

Now, I only want 06 to come out of that line of code. What's the best way to get that 06 out of that line of code?

Thanks for any help you can give me.

Will
 
Posts: 18 | Location: Saint Louis | Registered: April 01, 2005Report This Post
Member
posted Hide Post
Will,

Try this:

CURMTH/M = CUR_MONTH

Or you could just display CUR_MONTH in M format in your report procedure.

Cheers

Andrew W
 
Posts: 27 | Location: Sydney, Australia | Registered: May 27, 2003Report This Post
Member
posted Hide Post
That worked perfectly. Thanks for your help. I wasn't sure you could just do an M like that, but obviously you can.

Thanks again!
 
Posts: 18 | Location: Saint Louis | Registered: April 01, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders