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] need to pass RC variable to post process

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] need to pass RC variable to post process
 Login/Join
 
Member
posted
We are defining a variable in the report caster advanced task options, then we are running a post process report that needs the same variable definition, however it doesn't appear to keep the definition for the post process. Any suggestions?? Thanks!

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


TEST: WF 8.0.9 - DevStudio 8.0.9
PROD: WF 8.0.9 - DevStudio 8.0.9
Platform: SQL Server/Windows
 
Posts: 11 | Registered: October 31, 2006Report This Post
Member
posted Hide Post
MY SIGNATURE IS OUT OF DATE - our PROD version is 7.6


TEST: WF 8.0.9 - DevStudio 8.0.9
PROD: WF 8.0.9 - DevStudio 8.0.9
Platform: SQL Server/Windows
 
Posts: 11 | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
It does not work like you think it would.

In a Post Process you put the name of the fex and then you put the parameter all on that line like

MYFEX COUNTRY='ENGLAND'

You sure it has to be a Post Process and not just a second task?
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
It needs to be a post process to only have one report code to be used for various report versions.
We were able to solve this by passing the variable to a global variable, the global variable was then able to pass to the post process. Smiler

We can set up multiple report caster jobs, each referencing the same report code and simply changing the parameters in the advanced task options:

EX: Report Caster settings:
execute report "abc123.fex"
paramters &BURST = Y and &INVRSN = VP
burst to distribution list
post process procedure = "abc123.fex"
(SAME fex but this time the &BURST value will be that defined by -DEFAULT which is "N")

This works perfectly!!!
very simplified code example:

-DEFAULT &BURST = 'N';
-DEFUALT &INVRSN = ' ';

-IF &BURST EQ 'N' THEN GOTO STATIC_REPORT ELSE GOTO BURST_RPT;

-*------------------------------
-BURST_RPT
-SET &&VRSN = &INVRSN;
-SET &SORTBY = IF &&VRSN EQ 'VP' THEN 'BY SALES_VP' ELSE 'BY SALES_REP';

TABLE FILE XYZ
-* does all report processing steps
ON TABLE HOLD AS FINALHOLD
END

TABLE FILE FINALHOLD
PRINT ...
&SORTBY
ON TABLE SET ONLINE-FMT EXL2K
END
-GOTO ZZ

-*------------------------------
-STATIC_RPT
-SET &SORTBY = IF &&VRSN EQ 'VP' THEN 'SALES_VP' ELSE 'SALES_REP';

TABLE FILE FINALHOLD
PRINT ...
BY &SORTBY
ON &SORTBY SUBHEAD
ON &SORTBY SUBTOTAL
ON TABLE SAVE FILENAME ... FORMAT EXL2K
END
-GOTO ZZ

-ZZ


TEST: WF 8.0.9 - DevStudio 8.0.9
PROD: WF 8.0.9 - DevStudio 8.0.9
Platform: SQL Server/Windows
 
Posts: 11 | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
That'll work!
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report 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] need to pass RC variable to post process

Copyright © 1996-2020 Information Builders