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)Using -SET to Create a Parameter Prompt to Have Variables Entered to PassThru

Read-Only Read-Only Topic
Go
Search
Notify
Tools
(Solved)Using -SET to Create a Parameter Prompt to Have Variables Entered to PassThru
 Login/Join
 
Silver Member
posted
Hoping I'm wording this correctly. I'm attempting to create a prompt for users that are running a procedure to enter Start and End dates to limit the results of a SQL report sent to Passthrough.

The SQL portion of the procedure runs fine with the dates hardcoded, but I wanted users to be prompted to enter their desired Start/End date range.

Added the following -SET in the procedure before the SQL Report:

-SET &FROM_DATE = &ENTER_FROM
-SET &TO_DATE = &ENTER_TO

The WHERE portion of my SQL report in the procedure is

WHERE (tablealias.date BETWEEN To_DATE(&FROM_DATE, 'DD-MM-YYYY') AND To_Date(@TO_DATE,'DD-MM-YYYY'))

I run the procedure and am prompted for the ENTER_FROM and ENTER_TO entries and enter my desired dates, but receive the following FOC error:

(FOC295) A VALUE IS MISSING FOR: &TO_DATE

I'm not certain why it is accepting the entry for the first -SET and not the second. I'm hoping I'm on the right track. Any assistance is very appreciated.

This message has been edited. Last edited by: Mike Williams,


WF Version 8105
 
Posts: 45 | Registered: October 07, 2015Report This Post
Master
posted Hide Post
It looks like you have a typo:

WHERE (tablealias.date BETWEEN To_DATE(&FROM_DATE, 'DD-MM-YYYY') AND To_Date(@TO_DATE,'DD-MM-YYYY'))

@TO_DATE should be &TO_DATE, but there might be more to it than just that.


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Silver Member
posted Hide Post
Ugh, thank you for catching that. Made the change, but unfortunately receiving the same error.


WF Version 8105
 
Posts: 45 | Registered: October 07, 2015Report This Post
Expert
posted Hide Post
Hi Mike,
Need to -DEFAULTS before the -SET:

-DEFAULTS &ENTER_FROM = '', &ENTER_TO = ''

Also, Dialogue Manager statements end in a semi-colon:
-SET &FROM_DATE = &ENTER_FROM;
-SET &TO_DATE = &ENTER_TO;

hth


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Master
posted Hide Post
And try adding this line at the top of your code:

-SET &ECHO=ALL;


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Silver Member
posted Hide Post
Many thanks to everyone. Tom helped me to finalize the other FOC errors I was encountering with this. Solved.


WF Version 8105
 
Posts: 45 | Registered: October 07, 2015Report 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)Using -SET to Create a Parameter Prompt to Have Variables Entered to PassThru

Copyright © 1996-2020 Information Builders