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
Date Issue
 Login/Join
 
Master
posted
Join flda in tab1 to fldb in tab2;

TABLE FILE TAB1
PRINT
FLD1
FLD2
FLD3
WHERE DATEFLD GE '20070501'
WHERE DATEFLD LE '20070601'
END
-EXIT

In the above table request, if the DATEFLD is YYMD in master file it works fine. If we have DATEFLD as HYYMDS it fails.

I thought of using DEFINE and convert the HYYMDS to YYMD using HDATE to do that filter but it takes more processing time.

Is there any way I can achieve this filter to work?


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
Put your DEFINE in the TAB1 master, then use that column for tests. Then, you don't have to put it in every fex...

Processing time shouldn't increase...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
We dont want to fix the master file as if we move to different server and create new set of master files then we have to apply this change there also and also we should remember this change in future.

I want to fix this issue in code level.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
Kamesh,

Are you able to use SQL?:

SQL
SELECT
FLD1
FLD2
FLD3
WHERE DATE(DATEFLD) BETWEEN '20070501' AND '20070601'
FROM TAB1;
TABLE
ON TABLE HOLD AS TAB_OUT
END
-EXIT

Just throwing out ideas....


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
Thanks for your thoughts.

I can but in this case I have to use only Master file.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
Use the DT function in your where statement. It will translate properly to the Sql engine:

TABLE FILE TAB1
PRINT
FLD1
FLD2
FLD3
WHERE DATEFLD GE DT(2007-05-01 00:00:00);
WHERE DATEFLD LE DT(2007-06-01 23:59:59);
END
  


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver Member
posted Hide Post
Your date field format HYYMDS prints 1999/02/05 02:05:25

- so to extract 2005 data
DATEFLD GE '2005/01/01 00:00:01' AND
DATEFLD LT '2006/01/01 00:00:01'

You get the idea.

Hope this helped !!



quote:
Originally posted by Kamesh:
Thanks for your thoughts.

I can but in this case I have to use only Master file.


-Yogesh Patel
------------------------------------------------------------------------
PROD: WF 764 on Linux Apache tomcat v5.5
DEV: WF 768 on Linux
 
Posts: 42 | Location: Edison, New Jersey | Registered: January 30, 2007Report This Post
Master
posted Hide Post
Thanks everybody.

Dhagen suggestion worked.


WFConsultant

WF 8105M on Win7/Tomcat
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders