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] How to make &Variables not required in ReportCaster (WF8)

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to make &Variables not required in ReportCaster (WF8)
 Login/Join
 
Silver Member
posted
Hello,

I had a report similar to this in WebFocus 7703 and, in ReportCaster, the variables we set up were optional and it would run with at least 1 variable populated.

When I moved the report to WebFocus 8009, ReportCaster is now giving me an error that "A VALUE IS MISSING FOR &VARIABLE". Here's an example:
  
SET NODATA = ' '

DEFINE FILE CAR
SHOW_RTL/D7 MISSING ON = IF RETAIL LT 5000 THEN RETAIL ELSE MISSING;
END

TABLE FILE CAR
PRINT
CAR
MODEL
RETAIL
SHOW_RTL
BY COUNTRY
WHERE ( (COUNTRY EQ '&COUNTRY') OR
        (CAR EQ '&CAR')
      )
END


In WF7 RC, If I put &COUNTRY = ITALY and left &CAR null, it would run with all output where COUNTRY = ITALY.

In WF8 RC, If I put &COUNTRY = ITALY and left & CAR null, I'd get this error:
quote:

BTP1020 Executing focexec.
BTP1020 Connection to the Reporting Server EDASERVE closed at 2017-02-18 08:07:01.159-0800 (1,487,434,021,159)
BTP1020 Job ran on the Reporting Server EDASERVE for 0.0080 seconds
BTP1020 Task error: A VALUE IS MISSING FOR: &CAR
BTP1010 No report to distribute.


How do I fix this in WF8009 using ReportCaster?

Thank you

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


8009
Windows 7
Excel/HTML/AHTML/PDF
 
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011Report This Post
Expert
posted Hide Post
You could add defaults for the variables with -DEFAULTH.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
You can use some pre process condition for variable-

-SET &CAR= (IF &CAR EQ '' OR &CAR EQ MISSING) THEN '_FOC_NULL' ELSE &CAR;


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Virtuoso
posted Hide Post
If &CAR is undefined,
-SET &CAR= (IF &CAR EQ '' OR &CAR EQ MISSING) THEN '_FOC_NULL' ELSE &CAR;

will trigger the same error message.

-DEFAULT &CAR='_FOC_NULL' 

at the top of the fex is necessary and sufficient.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Silver Member
posted Hide Post
Thanks all! I will give those a try.

I appreciate it and will post an update of what worked before marking this solved.


8009
Windows 7
Excel/HTML/AHTML/PDF
 
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011Report This Post
Silver Member
posted Hide Post
I used:
quote:
-DEFAULT &CAR='_FOC_NULL'


This worked for me using a report with about 13 variables. It's a template for monthly scheduled reports where one or more variables could be used, but not all.

Thank you all for your assistance!


8009
Windows 7
Excel/HTML/AHTML/PDF
 
Posts: 34 | Location: San Francisco, CA | Registered: July 25, 2011Report 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] How to make &Variables not required in ReportCaster (WF8)

Copyright © 1996-2020 Information Builders