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.
I have searched on this topic and found very little info. Trying to see if we can conditionally "Prompt the user" or "Run with Defaults" I tried this link and wasn't successful http://forums.informationbuild...957043096#6957043096
This is the simplest requirement that I have. Please advise.
-DEFAULTH &FLG='Y';
-IF &FLG EQ 'N' THEN GOTO SKIP_IT;
-DEFAULT &PARM1=’VALUE1’;
-TYPE PROMPT for parms here
-SKIP_IT
-TYPE run with defaults here
-DEFAULTH &PARM1 = ‘VALUE2’;
This message has been edited. Last edited by: FP Mod Chuck,
I believe our user wants to use the same procedure as Adhoc versus scheduled job Via ReportCaster. When its scheduled we need it to run with defaults and when we launch it adhoc, we expect to pass some parms. Thanks in advance.This message has been edited. Last edited by: vaayu,
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004
BabakNYC, The requirement is to enable/disable prompt based on a flag so thats why I have a DEFAULT in one place and DEFAULTH in another place. We want to control the prompting based on a flag. Hope it makes sense
Your problem is with autoprompt. It isn't smart enough to follow conditional expressions.
In this case, it sees the -DEFAULT before it sees the -DEFAULTH, so it prompts for a value.
That suggests that you could invert your condition, putting the -DEFAULTH inside it and skipping to the -DEFAULT otherwises, but that won't work either; autoprompt will then see -DEFAULTH before -DEFAULT and never prompt.
What would work is to put both conditional sides into a separate file each and include the remainder of your procedure after that. Then, in the case that the user runs the truth-side procedure, she gets a prompt, and if she runs the falsehood-side procedure, she won't.
WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010 : Member of User Group Benelux :