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     Graph - X axis Date format

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Graph - X axis Date format
 Login/Join
 
Member
posted
Hi,

As per my requirement I need to get the X-axis date to be displayed as "Dec.2006".

I have used the following code:
TABLE FILE &&PERFGOOD
PRINT
FIRM
MET_P/D16.2
GOOD_P/D16.2
MON_INTVL
AND COMPUTE
TRANSDATE/YYMD = HDATE(FROM_DT, 'YYMD');
TIMELINE/MtY=TRANSDATE;

I get the ouput as "Dec, 2006".
Can anyone tell me how to change the date format as per my requirement?


Thanks and Regards,
Aravindbaalaaji
 
Posts: 12 | Location: India | Registered: February 13, 2006Report This Post
Gold member
posted Hide Post
If you are only going to run that job that week, change the frequency to weekly and then select the specific days you want to run the job. Use the Advanced button to select the beginning/ending dates so the schedule does not execute every week.


WebFOCUS 7.7.05M, gen 144, Windows 2008 Server R2 64-bit, Tomcat 6.0.33, IIS 7.0, SQL Server, Excel 2013, PDF, HTML, FOCUS files.
 
Posts: 88 | Location: Seattle | Registered: March 29, 2007Report This Post
Virtuoso
posted Hide Post
change the format to an long alpha field and replace the comma with a point.

ADATE/A17=EDIT(TRANSDATE);
NEWDATE/A17=CHGDAT('YMD','MtYY',ADATE,'A17');
NTIMELINE/A17=EDIT(NEWDATE,'999')|'.'|EDIT(NEWDATE,'$$$$$9999' );

But I can not test this, so I'm not sure if it will work




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
frank, i think the edit on a smart date will bring back the alpha version of the smart value which will be something like 37204.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
yeah Susannah, I was afraid so, do you have a better solution. (I need that book....)




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
pedantic, but works
define this function and put it in your edasprof (works in 71..doesn't work in 52)
 DEFINE FUNCTION F_EDATE(indate/YYMD)
 temp1/I8YYMD = indate ;
 temp2/A8     = EDIT(temp1);
 mn/A2        = EDIT(temp2,'$$$$99');
 year/A4      = EDIT(temp2,'9999');
 mn3/A3       = DECODE mn('01' 'Jan' '02' 'Feb' '03' 'Mar' '04' 'Apr' '05' 'May' '06' 'Jun'
               '07' 'Jul' '08' 'Aug' '09' 'Sep' '10' 'Oct' '11' 'Nov' '12' 'Dec');
 F_EDATE/A8   = mn3 | '.' | year ;
 END
..
then in your fex
DEFINE FILE myfile
NEWDATE/A8 = F_EDATE(TRANSDATE);
END
TABLE FILE myfile
BY TRANSDATE BY NEWDATE
and it works very nicely.

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
yes this was the other way....
not my favorit, but when it works

I never used functions, I'll take a look in the docs.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report 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     Graph - X axis Date format

Copyright © 1996-2020 Information Builders