Hello, I am getting the following error in this decode statement and I don't know why.
(FOC272) FORMAT ERROR IN DECODE OR FILE ELEMENT: TWO-WAY RADIO-VOICE SERVICES
I have removed the dashes and it still errors out. Is there a limit on the length of the input field or something? Is it the special characters in the input string? Any help would be appreciated.
Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2 Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
August 22, 2007, 11:41 AM
Prarie
Are Comma's supposed to separate a Decode?
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
August 22, 2007, 11:45 AM
Tony A
Ken,
Two things I would do first -
1. Remove the commas at the end of your decode pairs, they are not correct syntax. 2. Remove the duplicates from your decode pairs. There are about 22 (ish).
There are some limitations on decodes but I don't have the manual to hand to check. For an external file the limit is (I think) 32000 chars so you might like to consider loading the data into a file and the performing a JOIN.
TThis message has been edited. Last edited by: Tony A,
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
August 22, 2007, 11:49 AM
kgleason
thanks for the quick response.
type is an A100.
August 22, 2007, 11:49 AM
kgleason
I tried it with and without commas and got the same error.
August 22, 2007, 11:50 AM
Francis Mariani
'AT&T FIBER OPTIC NETWORK' 'DATA T-1',
is the culprit - WebFOCUS is trying to translate the &T as a Dialogue Manager variable.
Try coding it as:
'AT&|T FIBER OPTIC NETWORK' 'DATA T-1',
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
August 22, 2007, 11:52 AM
Francis Mariani
I like the commas and always use them to separate the pairs from each other.
From the manual:
quote:
Use either a comma or blank to separate the code from the result, or one pair from another
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
August 22, 2007, 11:57 AM
Tony A
Well, I'll be ********. Never really looked at that. Just goes to show the things we miss even when we do read the manual(s).
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
August 22, 2007, 12:06 PM
Francis Mariani
Tony,
In the documentation, that comma should be shown in the syntax as [,] instead of just as a comment.
Cheers,
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
August 22, 2007, 01:03 PM
dhagen
Geeze guys! 1777 and 1555 Post for Francis and Tony! Do you guys have jobs?
I'm actually just posting this to try to top 300. 300, I feel like I've done nothing on this site!
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
August 22, 2007, 01:20 PM
Francis Mariani
Now it's 119 for me! And we won't even talk about my pseudonym!
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
August 22, 2007, 01:32 PM
kgleason
Thanks for all the responses. I am still getting the same error: (FOC272) FORMAT ERROR IN DECODE OR FILE ELEMENT: TWO-WAY RADIO-VOICE SERVICES
Here is the decose statement after removing commas, duplicates and changing AT&T to AT&|T
Also from the manual: "You can use up to 40 lines to define the code and result pairs for any given DECODE function, or 39 lines if you also use an ELSE phrase. Use either a comma or blank to separate the code from the result, or one pair from another. "
I would guess there are more than 40 lines in this one. As to why it references that particular line, ???. Just like "Error at or near line X" sometimes gets close, sometimes it doesn't.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Perhaps there's something else in your program causing the error.
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
August 22, 2007, 02:17 PM
Prarie
quote:
Well, I'll be ********.
Me too on that one Tony.
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
August 22, 2007, 03:07 PM
kgleason
It works now. Using the example Francis gave.
Thanks for all you suggestions.
August 22, 2007, 03:12 PM
Tony A
Ken,
I also noticed a pairing that didn't have a space between them - 'SYNCHRONOUS OPTICAL NETWORK-OC24''DATA T-3', but that doesn't seem to be there in your last post.
I actually stripped out all the values for TYPE_, knocked up (sorry Mickey, "put together") a dynamic .mas and then ran the decode with the dupicates removed (how do you think I knew it was around 22?) and ran a quick TABLE request. It worked perfectly OK.
DHagen,
Yes, I have a job, I just don't have a life by the looks of things
In my defence I would point out that Francis has been registered a year less than me so his posting rate is higher (64 a month as opposed to 39 )
TThis message has been edited. Last edited by: Tony A,
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