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] Error FOC1517

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Error FOC1517
 Login/Join
 
Platinum Member
posted
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 STATEMENT

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


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Expert
posted Hide Post
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.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
What is the contents of &YEAR ?, does it have quotes in it ?


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
Expert
posted Hide Post
Single quotes, NOT double quotes...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Tom, they are single, but two of them.


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
Platinum Member
posted Hide Post
quote:
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, 2009Report This Post
Platinum Member
posted Hide Post
quote:
Originally posted by Waz:
What is the contents of &YEAR ?, does it have quotes in it ?


I have selected 2009 as year from the launch page. So, &YEAR should get the value of 2009.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Expert
posted Hide Post
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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
Also the -? & will show all the variables and their contents.


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
Platinum Member
posted Hide Post
quote:
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, 2009Report This Post
Expert
posted Hide Post
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?

Comparision Error between computational and alpha values


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
quote:
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?

Comparision Error between computational and alpha values


&YEARMONTH is a multiselection parameter.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Virtuoso
posted Hide Post
quote:
(FOC1517) UNRECOGNIZED COMMAND GETTING THE DATE FOR THE REWARDS ISSUED.

Seems like the FOC1517 error may be caused by a missing comment marker (-*) for a comment line ("GETTING THE DATE FOR THE REWARDS ISSUED".


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Platinum Member
posted Hide Post
quote:
Seems like the FOC1517 error may be caused by a missing comment marker (-*) for a comment line ("GETTING THE DATE FOR THE REWARDS ISSUED".


It is fixed now but still getting that FOC257 error


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Expert
posted Hide Post
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


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
Platinum Member
posted Hide Post
quote:
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, 2009Report This Post
Expert
posted Hide Post
Well then, it looks like we've fixed it.


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
When I select 2009 for Year and October for Month in the Launch Page
it should take the value of 2009 for &YEAR and 200910 for &MONTH.

should it be showing

-TYPE YEAR: 2009;
YEAR: 2009;
-TYPE MONTH: 200910;
MONTH: 200910;


OR


-TYPE YEAR: '2009';
YEAR: '2009';
-TYPE MONTH: '200910';
MONTH: '200910';

I am getting the later part in the execution.

P.S. I am new to the tool, It may be a silly Question.


7.6.7
windows
PDF,EXCEL.
 
Posts: 160 | Location: Atlanta,GA | Registered: July 16, 2009Report This Post
Expert
posted Hide Post
You have too many DEFINE-based WHERE statements.

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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
quote:
I am getting the later part in the execution

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, 2007Report This Post
Guru
posted Hide Post
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, 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     [CLOSED] Error FOC1517

Copyright © 1996-2020 Information Builders