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     [SOLVED] Dynamic List not working in Report Caster Job

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Dynamic List not working in Report Caster Job
 Login/Join
 
Gold member
posted
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.
...

I created a SYNONYM called TESTDYNAMICEMAIL.

FILENAME=TESTDYNAMICEMAIL, SUFFIX=FOC , $
SEGMENT=SEG01, SEGTYPE=S1, $
FIELDNAME=FOCLIST, ALIAS=E01, USAGE=I5, $
FIELDNAME=burstValue, ALIAS=E02, USAGE=A8,
MISSING=ON, $
FIELDNAME=emailAddress, ALIAS=E03, USAGE=A80,
MISSING=ON, $


...and here's my .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 PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = endeflt,
$
ENDSTYLE
END

I appreciate any input.

Thanks,
Winnie

This message has been edited. Last edited by: <Kathryn Henning>,


Winnie

Webfocus 7.7.3
 
Posts: 83 | Registered: July 16, 2008Report This Post
Guru
posted Hide Post
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
 
Posts: 496 | Registered: January 04, 2008Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Gold member
posted Hide Post
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
 
Posts: 83 | Registered: July 16, 2008Report This Post
Guru
posted Hide Post
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.

User1@test.com,A,$
User2@test.com,B,$
User3@test.com,C,$


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Gold member
posted Hide Post
MattC,

I'm getting the data from the database and it's stored in the HOLD file...

Here's what it looks like...I only have one row in there for testing purposes...
VALUE DEST
RPCLOH username@test.com

Am I supposed to put comma and $ on my result set?


Winnie

Webfocus 7.7.3
 
Posts: 83 | Registered: July 16, 2008Report This Post
Guru
posted Hide Post
Yes, I would define it prior and concatenate into a single column with

“email address’ , ‘ bust value’, $


DEFINE FILE
DESTVALUE/AXX = DEST | ‘,’ | VALUE |’.’|’$’;
END

TABLE FILE
PRINT DESTVALUE
END


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Platinum Member
posted Hide Post
Winnie, Order counts. For a dynamic list the order expected is DEST then VALUE.


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Member
posted Hide Post
Hello,

Try ON TABLE PCHOLD instead of HOLD.


WF773, RC, RL, IWay, SQL2008, Oracle 11G, DB2 9.X, HP-DB2
 
Posts: 11 | Location: Michigan, USA | Registered: October 27, 2008Report This Post
Guru
posted Hide Post
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
 
Posts: 398 | Registered: February 04, 2008Report This Post
Gold member
posted Hide Post
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

Regards,


Winnie

Webfocus 7.7.3
 
Posts: 83 | Registered: July 16, 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     [SOLVED] Dynamic List not working in Report Caster Job

Copyright © 1996-2020 Information Builders