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] DMYY to DMtYY using Dialog Manager commands

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DMYY to DMtYY using Dialog Manager commands
 Login/Join
 
Platinum Member
posted
Its pretty easy to convert DMYY to DMtYY inside TABLE FILE request.

TEST/DMtYY = Date filed in DMYY format;

I am trying to achieve the same outside of TABLE FILE request.

Any guide on this?

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 165 | Registered: September 29, 2008Report This Post
Virtuoso
posted Hide Post
It's not the only way, 'cause with Focus there are multiple ways, but could be one:
-SET &DATETXT    = LCWORD(20, DATETRAN (DATECVT(20150423, 'I8YYMD', 'DMYY'),'(DMYY)', '(t)', 'EN', 20, 'A20'), 'A20');
-TYPE &DATETXT

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


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: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Thank you Martin :-)
 
Posts: 165 | Registered: September 29, 2008Report This Post
Platinum Member
posted Hide Post
Another way ... with your comma

-SET &DATETXT2 = FPRINT(DATECVT(&YYMD,'I8YYMD','DMYY'),'DMtYY','A12');
-TYPE &DATETXT2


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Expert
posted Hide Post
atturhari,

can you please update your signature, as answers like these may work on newer versions and not older ones, and knowing this will help with a better answer


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6349 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
Sure


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report This Post
Platinum Member
posted Hide Post
I am trying to convert a date in DMtYY format to a string (alpha format) inside the TABLE FILE request.

I tried several functions but could not get it any where close to it.
 
Posts: 165 | Registered: September 29, 2008Report This Post
Platinum Member
posted Hide Post
I will make the "standard" recommendation to get hold of a copy of "(Almost) 1001 Ways To Work With Dates" from Aviter by Price w/Perlmutter.


WebFOCUS 7.7.05 (Someday 8)
Windows 7, All Outputs
In Focus since 1983.
 
Posts: 103 | Registered: April 27, 2011Report This Post
Platinum Member
posted Hide Post
How about this ...

-*
DEFINE FILE CAR
DATE1/DMtYY = '&DATEDMYY';
DATE2A/DMYY = '&DATEDMYY';
DATE2B/A12 = FPRINT(DATE2A,'DMtYY','A12');
END
-*
TABLE FILE CAR
PRINT
COUNTRY
DATE1
DATE2A
DATE2B
WHERE RECORDLIMIT EQ 1
END


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Platinum Member
posted Hide Post
That's really cool jfr99. Thanks a lot


WF 7.7.02 on Windows 7
Teradata
HTML,PDF,EXCEL,AHTML
 
Posts: 165 | Registered: September 29, 2008Report 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] DMYY to DMtYY using Dialog Manager commands

Copyright © 1996-2020 Information Builders