I need to create a dynamic address list for bursting the report through ReportCaster.The code I am using is:
SET ASNAMES = ON
TABLE FILE CAR_DC PRINT COUNTRY AS 'VALUE' EMAIL_ADDR AS 'DEST' ON TABLE PCHOLD END
But while running it through ReportCaster I am getting the error like this: Schedule ID: S12q2b1jvh11, Job Description: CAR Completed with errors/warnings No burst value found in the report No report to distribute.
Can anybody help on this why am i getting this error and how to solve it? Thanks..
November 28, 2007, 05:23 AM
FrankDutch
Rita
How dit you create the CAR_DC, is it a real database or did you do this by a define?
If you run this small report what does the output look like (you may post is)
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
November 28, 2007, 06:08 AM
<Rita>
Frank,
I have created CAR_DC table in MRE and holded it in format DB2.
APP HOLD SERVERNAME SET TITLES = OFF SET BYDISPLAY = ON SET HOLDLIST = PRINTONLY TABLE FILE CAR PRINT MODEL SEATS SALES BY COUNTRY BY CAR ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS CAR_DC1 END DEFINE FILE CAR_DC1 EMAIL_ADDR/A40 = IF COUNTRY EQ 'ENGLAND' THEN 'Ritanjali.S@def.com' ELSE IF COUNTRY EQ 'JAPAN' THEN 'Ybd.A@def.com' ELSE 'Ritanjali.S@def.com'; END TABLE FILE CAR_DC1 PRINT MODEL SEATS SALES BY COUNTRY BY EMAIL_ADDR BY CAR ON TABLE SET HOLDLIST PRINTONLY ON TABLE HOLD AS CAR_DC FORMAT DB2 END
And in procedure i have written this code: SET ASNAMES = ON TABLE FILE CAR_DC PRINT COUNTRY AS 'VALUE' EMAIL_ADDR AS 'DEST' ON TABLE PCHOLD END
can you tell why am i getting error?
Thanks
November 28, 2007, 07:49 AM
FrankDutch
Rita
I'm not sure if this caused the problem but I changed your code a bit to
-* File DynamicMail.fex
-*APP HOLD SERVERNAME
SET TITLES = OFF
SET BYDISPLAY = ON
SET HOLDLIST = PRINTONLY
TABLE FILE CAR1
BY COUNTRY
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS CAR_DC1
END
DEFINE FILE CAR_DC1
EMAIL_ADDR/A40 = IF COUNTRY EQ 'ENGLAND' THEN 'Ritanjali.S@def.com'
ELSE IF COUNTRY EQ 'JAPAN' THEN 'fter@kempen.nl' ELSE 'Ritanjali.S@def.com';
END
TABLE FILE CAR_DC1
BY COUNTRY
BY EMAIL_ADDR
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS CAR_DC
END
-*And in procedure i have written this code:
SET ASNAMES = ON
TABLE FILE CAR_DC
PRINT
COUNTRY AS 'VALUE'
EMAIL_ADDR AS 'DEST'
ON TABLE PCHOLD
END
And used this a a complete code. It seems to work
(If the mail adresses were real you should have got a report...)
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
November 28, 2007, 09:01 AM
jgelona
I think your list is not in the correct format. The format is supposed to be:
email_address,burst_value,$
The , and ,$ are significant.
At least, this works for us.This message has been edited. Last edited by: jgelona,
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
November 28, 2007, 09:26 AM
FrankDutch
JG
Your solution is a flat file. Rita uses the dynamic file adress and that is the WebFocus internal XML file format.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
November 28, 2007, 02:03 PM
Darin Lee
What are you expecting the output to be and in what format? You have ON TABLE PCHOLD which sends the file from the WF server back to the client requesting it - it holds the file locally. This is fine if running on-demand from a browser but if requested from RC, what does "local" mean? It doesn't have anywhere to send it except to the server where it was run so I would assume that's just like an ON TABLE HOLD and you would get the exact error message you're seeing. Try commenting out this line and see what you get.
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
November 28, 2007, 02:42 PM
GinnyJakes
This works in 762.
-* File car_dynamic_distribution_list.fex
DEFINE FILE CAR
CTR/I6 WITH COUNTRY = IF CTR EQ 0 THEN 1 ELSE 0;
FILE1/A6=EDIT(CTR);
EMAIL_ADDRESS/A40=IF CTR EQ 1 THEN emailaddr1@xxxx.com' ELSE 'emailaddr2@yahoo.com';
BURST_VALUE/A50=COUNTRY;
END
TABLE FILE CAR
PRINT BURST_VALUE AS VALUE
EMAIL_ADDRESS AS DEST
ON TABLE SET ASNAMES ON
ON TABLE PCHOLD
END
I'm not sure what is wrong with yours. I got the technique from the IBI website. I had originally created this in 533 and just ran my example in 762 (with real email addresses ) and it worked just fine.
The only differences that I can see is that my burst value field is A50 and the ASNAMES is in an ON TABLE.
this technique is working in 7.1.3 also. The ON TABLE PCHOLD generates an XML file that is used by reportcaster. The script for this must be placed outside the MRE.
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
November 29, 2007, 11:55 AM
Darin Lee
Right - we also use the same technique for generating dynamic address lists. What I am not understanding is what they are trying to do with it. It sounds like they are just running this procedure standalone and expecting some output - but the intent of the code is to generate a file for internal use by RC. You've also got to have a procedure that produces a report to be burst using the generated address list. Just needing some clarification--
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