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.
new.fex ---------------------------- DEFINE FILE DATE ACDT1/I8YYMD=DATECVT(DATE,'YYMD','I8YYMD'); ACDT2/A8=EDIT(ACDT1,'99999999'); ACDT3/A6=EDIT(ACDT2,'999999$$'); END TABLE FILE DATE PRINT DST.DATE ACDT3 ACDT2 COMPUTE DT1/YYMD=DATEADD(DATE,'M',-2); AS DT11 COMPUTE DT2/YYMD=DATEMOV(DT1,'EOM'); AS DT22 COMPUTE DT3/A8=DATECVT(DT2,'YYMD','A8'); AS DT33 WHERE YEAR EQ '&YEAR'; -* this is line 145 WHERE ACDT2 LIKE '%01'; WHERE ACDT3 IN (&YEARMONTH); END
--------------------------------------------
WHERE YEAR EQ ''2009''; WHERE ACDT2 LIKE '%01'; WHERE ACDT3 IN (''200911''); ON TABLE HOLD AS HLD END -RUN (FOC1517) UNRECOGNIZED COMMAND GETTING THE DATE FOR THE REWARDS ISSUED. 0 ERROR AT OR NEAR LINE 145 IN PROCEDURE new FOCEXEC * (FOC257) MISSING QUOTE MARKS: ''2009''; BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENTThis message has been edited. Last edited by: Kerry,
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
to the top of new.fex - it looks like the value of one of the Dialogue Manager variables you're using in your WHERE statements is not what you think it is.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Originally posted by Francis Mariani: Do you have any skill at debugging errors?
Add
-SET &ECHO='ALL';
-? &
to the top of new.fex - it looks like the value of one of the Dialogue Manager variables you're using in your WHERE statements is not what you think it is.
I am new to the WF tool. I have already included -? & and -SET &ECHO = 'ALL';
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
The ECHO should show you what values were substituted in the code. Post the execution of the code, get it by viewing the source from the web browser window.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Originally posted by Francis Mariani: The ECHO should show you what values were substituted in the code. Post the execution of the code, get it by viewing the source from the web browser window.
The bottom part of the original posting is the execution of the code ......
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
Originally posted by Francis Mariani: Then your variable &YEAR has embedded single-quotes in it. Either get rid of those single-quotes or remove the single-quotes from the WHERE statement.
And what does
WHERE ACDT3 IN (&YEARMONTH);
do? That should probably be
WHERE ACDT3 EQ &YEARMONTH;
Where did all those single-quotes come from? Why do you post the same questions in multiple postings?
As Francis said, this is because of the two single quotes that are wrapped around the Year or YearMonth.
It looks like you have single quotes embeded in the variable, therefore removing the single quotes arounf the variable in the code should fix the problem
Originally posted by Waz: It looks like you have single quotes embeded in the variable, therefore removing the single quotes arounf the variable in the code should fix the problem
After removing the single quotes in the code.
WHERE YEAR EQ '2009'; WHERE ACDT2 LIKE '%01'; WHERE ACDT3 IN ('200910'); ON TABLE HOLD AS HLD END -RUN 16.42.26 AE SELECT T1."Date"(FORMAT 'YYYY-MM-DD')(CHAR(10)), 16.42.26 AE T1."Year"(SMALLINT) FROM WebfocusViews.DATE T1 16.42.26 AE WHERE (T1."Year" = 2009) ORDER BY T1."Date"; 0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
7.6.7 windows PDF,EXCEL.
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009
Why are you filtering on both the Year AND the Year/Month?
Most likely your WHERE statements cannot be passed to SQL (because they're on DEFINE fields) - this is why you don't see them in the SQL, but you should have warning messages regarding this.
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
I think you created your html launch page using the html painter. That would explain the quotes around the selected value, because that's the way the html painter returns the values. Should you have built the page outside of the html tool, then the way the values are returned would have been exactly as you built it.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
This happenned almost to everyone! IBI should have fixed this problem that parameters passing down from launch page, autoprompt or drilldown shoud give us uniform values - either quoted or un-quoted. Every time, it takes several twists & turns for all of us(young & old) to figure out, because we didn't EXPECT this behavior.
Hua
Developer Studio 7.6.11 AS400 - V5R4 HTML,PDF,XLS
Posts: 305 | Location: Winnipeg,MB | Registered: May 12, 2008