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     [CLOSED] How to convert the smart date to an A6 format for WHERE Stmt

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to convert the smart date to an A6 format for WHERE Stmt
 Login/Join
 
Master
posted
I have a smart date which I derive from:

quote:

DEFINE FILE CAR
T2DATE/YYMD = &YYMD;
A6DATE/ = ;
END


How do I convert the smart date to an
A6 format (YYMMDD)to use in
the WHERE statement:

quote:

TABLE FILE BLAH-BLAH
PRINT
STONES
BY ROCKS
WHERE RECDATE EQ A6DATE ;
END


Note: RECDATE is an A6 format date.

Thanks!
Razzer

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
A6DATE/A6YMD = T2DATE; should do it?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
Depends on which way you wanted it.

 DEFINE FILE CAR
T2DATE/YYMD = &YYMD;
T3DATE/A8YYMD = T2DATE;
A6DATE/A6 = CHGDAT('YYMD','MDY',T3DATE,'A6') ;
A6DATE2/A6YMD = T2DATE;
END
TABLE FILE CAR
PRINT A6DATE A6DATE2
BY CAR
END
 
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Master
posted Hide Post
Yes Tony, Here is the rest of the code:

quote:

DEFINE FILE CAR
T2DATE/YYMD WITH COUNTRY = &YYMD;
A6DATE/A6YMD = T2DATE;
TODAY/A6 = A6DATE;
END

TABLE FILE CAR
PRINT
T2DATE
TODAY
-*
BY INSPDATE
WHERE INSPDATE EQ TODAY ;
IF RECORDLIMIT EQ
END
-RUN


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
Tom,

That's good, the solution from Prairie might be a little neater though Smiler

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
Personally, I'd always do things the other way around - change the A6DATE to a YYMD Smartdate and then do the WHERE .....


WebFOCUS 7.7.05 Windows, Linux, DB2, IBM Lotus Notes, Firebird, Lotus Symphony/OpenOffice. Outputs PDF, Excel 2007 (for OpenOffice integration), WP
 
Posts: 674 | Location: Guelph, Ontario, Canada ... In Focus since 1985 | Registered: September 28, 2010Report This Post
Virtuoso
posted Hide Post
Are you really really really really sure you want to use YMD?
I thought we all learned to not make that mistake ever again about 13 years ago.

Use what George says Wink


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report 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     [CLOSED] How to convert the smart date to an A6 format for WHERE Stmt

Copyright © 1996-2020 Information Builders