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] V2R2M1 Report Caster issues with -PROMPT

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] V2R2M1 Report Caster issues with -PROMPT
 Login/Join
 
Member
posted
After a recent update to V2R2M1 of WebQuery our schedules no longer run with reports that have

-PROMPT for the field selections

Example
-PROMPT &CO.(<Company1,100>,<Company 2,200>).Enter the Company.



The reports run manually just not through Report Caster

The only error given is the 'Task 1' error below. When I remove the -PROMPT and leave the schedule as is they run but then users have issues running the reports manually.


quote:


Executing focexec.


Connection to the Reporting Server EDASERVE closed at 2018-09-11 05:05:03.468-0500 (1,536,660,303,468)


Job ran on the Reporting Server EDASERVE for 1.748 seconds


Task finished.


No report from Task 'Task 1'.


No report to distribute.


Job finished at 2018-09-11 05:05:03.485-0500 (1,536,660,303,485)


Job time on distribution server after the report completed was 0.003 seconds


Total running time was 2.192 seconds


Total elapsed time (including the queue time) was 2.193 seconds

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: May 17, 2013Report This Post
Virtuoso
posted Hide Post
Hi Christa

Welcome to Focal Point. It is a great forum for getting answers to development questions.

Unfortunately there really isn't an error message shown in the log. You might want to put a -SET &ECHO=ALL; at the beginning of the fex and hopefully a more meaningful message will be displayed.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Gold member
posted Hide Post
We've been told that due to code tightening that ReportCaster does not handle -PROMPT. If I remember right -PROMPT was originally part of the FOCUS mainframe section and not meant to be part of WebFOCUS was the reasoning.

Can change the -PROMPTs to use -SET or -TYPE and will work. So your example would look like this
-SET &CO=&CO.(<Company1,100>,<Company 2,200>).Enter the Company.;

-TYPE &CO.(<Company1,100>,<Company 2,200>).Enter the Company.



We typically use the -SET but I don't know if there is truly one better than the other.
On a side note with the -TYPE it will show the value in the message viewer so if there is no output could see what the value for the ampersand variable was when it ran. Can change the -TYPE to have the variable name if have several to know which is which like below.
-TYPE CO = &CO.(<Company1,100>,<Company 2,200>).Enter the Company.

Will show CO = 100 or CO = 200 based on which was selected instead of just a line with 100 or 200. If don't want any of the -TYPE information though can use the -SET.


WF: 8201, OS: Windows, Output: HTML, PDF, Excel
 
Posts: 78 | Registered: November 08, 2010Report This Post
Expert
posted Hide Post
I assume that you are passing in the parms that the -PROMT gets, if so, why don't you check if its a report caster job, and skip the -PROMPT.


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
Member
posted Hide Post
I came up with a simple solution to keeping the -Prompts and letting the schedule run without error.

 
-IF &CO NE '' THEN GOTO SKIP_PROMPT;

-PROMPT &CO.(<Company 1,100>,<Company 2,200>).Enter the Company.
-PROMPT……………………………..more prompts
-PROMPT……………………………..more prompts
-PROMPT……………………………..more prompts
-PROMPT……………………………..more prompts

-SKIP_PROMPT;


 


The GOTO works since the schedule sends &CO=100 and a manual run has nothing in it.

I will have to try changing a few reports to -SET or -TYPE and see if that solves the issue to. I'm not a huge fan of 'goto' but it works

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: May 17, 2013Report This Post
Member
posted Hide Post
quote:
Originally posted by Waz:
I assume that you are passing in the parms that the -PROMT gets, if so, why don't you check if its a report caster job, and skip the -PROMPT.


Exactly! Smiler I figured it out yesterday afternoon.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: May 17, 2013Report This Post
Member
posted Hide Post
quote:
You might want to put a -SET &ECHO=ALL; at the beginning of the fex and hopefully a more meaningful message will be displayed.


It never got far enough through the scheduler to show me anything. I had to guess until I figured out it was the -PROMPT.

Thanks for responding though


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 6 | Registered: May 17, 2013Report This Post
Expert
posted Hide Post
Can you update the title of this thread and add [SOLVED] or [CLOSED], so everyone knows there is a solution ?


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
  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] V2R2M1 Report Caster issues with -PROMPT

Copyright © 1996-2020 Information Builders