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
[CLOSED]Date Format
 Login/Join
 
Member
posted
The date field is A8 (10/01/15)

created 2 date define fields to allow the user to enter a from and to date parameter

START_DT_FR/A8= Start Date Field in File

START_DT_TO/A8= Start Date Field in File

When I run the report and prompts for dates
Promtp1 - 10/01/15
Prompt2 - 10/30/15

when the data is returned it is including dates in 2016 -ex: 10/04/16

Please help, user request to run report with from and to dates as parameters.

Thanks,
Lou

This message has been edited. Last edited by: <Emily McAllister>,


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 24, 2015Report This Post
Expert
posted Hide Post
Can you post the code ?


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: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
ENGINE INT CACHE SET ON


-*COMPONENT=Define_prmwowf16
DEFINE FILE gwa_iseries/prmwowf16
CM_START_DT_FR/A8=PRMWOWF16.PRMWOWF16.WASTRT ;
CM_START_DT_TO/A8= PRMWOWF16.PRMWOWF16.WASTRT ;
END
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE gwa_iseries/prmwowf16
BY PRMWOWF16.PRMWOWF16.WADOCO
BY PRMWOWF16.PRMWOWF16.WADL01
BY PRMWOWF16.PRMWOWF16.WAWR0901
BY PRMWOWF16.PRMWOWF16.WAANP01
BY PRMWOWF16.PRMWOWF16.WASTRT
BY PRMWOWF16.PRMWOWF16.WBSRDS
BY PRMWOWF16.PRMWOWF16.WAANSA
BY PRMWOWF16.PRMWOWF16.WAANSA01
BY PRMWOWF16.PRMWOWF16.WASRST
WHERE PRMWOWF16.PRMWOWF16.WADCTO EQ 'WO';
WHERE PRMWOWF16.PRMWOWF16.WASRST LT '75';
WHERE PRMWOWF16.PRMWOWF16.WAWR0901 EQ &WAWR0901.(OR(<.>,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, |FORMAT=A30)).Village:.;
WHERE CM_START_DT_FR GE &CM_START_DT_FR. (|FORMAT=A8).From Start Date MM/DD/YY.QUOTEDSTRING;
WHERE CM_START_DT_TO LE &CM_START_DT_TO. (|FORMAT=A8).To Start Date MM/DD/YY.QUOTEDSTRING;
ON TABLE SUBHEAD
"Permits Open Work Order"
ON TABLE PCHOLD FORMAT &WFFMT.(,,,,,,,,).Select an output type.

ON TABLE NOTOTAL
ON TABLE SET CACHELINES 100
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/combine_templates/ENTeal_Light1.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, HFREEZE=OFF, $
TYPE=TABHEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=1, ITEM=1, OBJECT=TEXT, SIZE=12, STYLE=BOLD+ITALIC, $
ENDSTYLE
END

-RUN


WebFOCUS 8
Windows, All Outputs
 
Posts: 5 | Registered: September 24, 2015Report This Post
Expert
posted Hide Post
Lou,

You are comparing alphanumeric values not dates, so 10/04/16 does indeed fall between 10/01/15 and 10/30/15.

If you want proof of this then enter the following into MS Excel and then sort as TEXT. Be sure to include the leading single quote -

'10/01/15
'10/30/15
'10/04/16


To be effective when managing selections like this, you really need to convert the alpha values to proper dates. The only problem when using an RDBMS is that sometimes the clause does not get converted to SQL and so it can be inefficient. So choose your conversion function with care!

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
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders