[SOLVED] Dynamic List not working in Report Caster Job
Hello,
I need to create hundreds of tasks in Report caster and each task has its own distribution list. I am looking into using Dynamic list.
I created a fex file using a stored procedure from SQL to select these two columns...ShipperCode (Burst Value) and email address (DEST).
Can someone help me with my code. I am getting this error in my log.
... THE ON FIELD IS NOT THE FIRST BY FIELD Task finished. Dynamically creating distribution information No distribution information returned by Dynamic List. Report not distributed. ...
SET ASNAMES=ON TABLE FILE TESTDYNAMICEMAIL PRINT TESTDYNAMICEMAIL.SEG01.burstValue AS 'VALUE' TESTDYNAMICEMAIL.SEG01.emailAddress AS 'DEST' ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD FORMAT HTML ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ ENDSTYLE END
I appreciate any input.
Thanks, WinnieThis message has been edited. Last edited by: <Kathryn Henning>,
Winnie
Webfocus 7.7.3
April 10, 2013, 06:32 PM
MattC
I don't think you want format html or you don't want column headings. You also need to format the file itself. I think you need a $ or comma between each. Check the documentation.
WebFOCUS 8.1.05
April 11, 2013, 06:59 AM
Alex
SET ASNAMES=ON
TABLE FILE CAR PRINT COUNTRY AS 'DEST' CAR AS 'VALUE' ON TABLE SET PAGE-NUM OFF ON TABLE NOTOTAL ON TABLE HOLD AS HLDEMAILDIST END
WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
April 11, 2013, 09:03 AM
Winnie
Thanks, Matt and Alex...
I changed my code to this, but I am still getting the error
... THE ON FIELD IS NOT THE FIRST BY FIELD Task finished. Dynamically creating distribution information No distribution information returned by Dynamic List. Report not distributed. ...
-*code SET ASNAMES=ON TABLE FILE TESTDYNAMICEMAIL PRINT TESTDYNAMICEMAIL.SEG01.burstValue AS 'VALUE' TESTDYNAMICEMAIL.SEG01.emailAddress AS 'DEST' ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS EMAILLIST END
When I run the fex file, I am getting result.
Thanks!
Winnie
Webfocus 7.7.3
April 11, 2013, 09:24 AM
MattC
Winnie,
How does your distribution file look?
I have a file that looks like this with no headings. You also need the commas and $ at each end.
As the message says there is no "BY" field in your fex. The burst function takes the first BY field for the distribution
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
April 12, 2013, 10:49 AM
Winnie
Thank you everyone for the input...I was able to make it work by creating a SYNONYM first and then using PCHOLD instead HOLD.
1st .fex file: ENGINE SQLSYB SET DEFAULT_CONNECTION MARTENHOT -*SUMMARY SQL SQLSYB EX mastersys..RCDynamicEmailListWF ;
APP HOLD SYBASE
TABLE FILE SQLOUT PRINT * ON TABLE HOLD AS TESTDYNAMICEMAIL FORMAT FOCUS END
2nd .fex file:
SET ASNAMES=ON TABLE FILE TESTDYNAMICEMAIL PRINT TESTDYNAMICEMAIL.SEG01.burstValue AS 'VALUE' TESTDYNAMICEMAIL.SEG01.emailAddress AS 'DEST' ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS EMAILLIST END
TABLE FILE EMAILLIST BY LOWEST EMAILLIST.EMAILLIS.DEST AS '' ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE PCHOLD END