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     [SOLVED] get the month name

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] get the month name
 Login/Join
 
Member
posted
Hello there,
I'm trying to write a report that needs to retrieve the number of calls received into the center every month, but I stuck in how to return the name of the month not the number of the month. I'm using here the REDEFIN the name of the field as the following code:

DEFINE FILE CALL_CENTER/CALL_STATS
C_MONTH REDEFINES CALL_STATS.CALL_STATS.C_MONTH = LCWORD(10, CHGDAT('YYMD','MX',C_MONTH,'A10') ,'A10');


END
TABLE FILE CALL_CENTER/CALL_STATS
.
.
.
anyone knows how to display the name of the month instead of the number please?

This message has been edited. Last edited by: Badr.A,


WebFocus App Studio
V8201
 
Posts: 23 | Registered: September 18, 2017Report This Post
Virtuoso
posted Hide Post
Try switching the format from YYMD to YYMtrDm.


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Virtuoso
posted Hide Post
There are several ways and format available (short, long, w/ or w/o year, ...). Depending on the format of the source Date, you may have to use more than one function.

Below are some sample (also Babak one)

DEFINE FILE GGSALES
Mth/Mtr = DATE;
YMthD/YYMtrD = DATE;
YMth/YYMtrDm = DATE;
END
TABLE FILE GGSALES
PRINT DATE/Mtr
      Mth
      YMthD
      YMth
BY DATE
WHERE READLIMIT   EQ 5;
WHERE RECORDLIMIT EQ 5;
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
thank you, it works as I want by Define method, I was using REDEFINE.


WebFocus App Studio
V8201
 
Posts: 23 | Registered: September 18, 2017Report This Post
Virtuoso
posted Hide Post
Badr,

Edit your first post then in the subject, at the beginning add [SOLVED].

Tks


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [SOLVED] get the month name

Copyright © 1996-2020 Information Builders