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     [CLOSED] Run date display

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Run date display
 Login/Join
 
Silver Member
posted
I have a report with all the date in the parameter panel for user to pick. and I used this date to display which data the report is running data for. The data default to the highest date to start, however the date won't display till you click run.

In other words: the default date did not display, but if you hit run button , the date will display. Does any one know why??
below is the code for the run date:

-IF &LASTRUNDATE NE ' ' THEN GOTO EXITRUNDATE;


TABLE FILE JOB_LASTRUN_LOG
BY HIGHEST 1 JOB_LASTRUN_LOG.JOB_LASTRUN_LOG.LASTRUNDATE
WHERE JOB_BATCH EQ 'CSR';
ON TABLE HOLD AS READCSRRD FORMAT ALPHA
END
-RUN
-READFILE READCSRRD
-TYPE &LASTRUNDATE

-EXITRUNDATE

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 34 | Registered: December 17, 2012Report This Post
Guru
posted Hide Post
quote:
the default date did not display, but if you hit run button , the date will display.

I couldn't understand it properly, may be someone would help. You've to click RUN button even for your default date. Roll Eyes

-READFILE in 7.6 ? as indicates in your signature


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Silver Member
posted Hide Post
In my report, when the report first run, I don't need to click on RUN, it will start with all the default value I had in the report code.
like below:
-DEFAULTH ®ION = 'FOC_NONE';
-DEFAULTH &SITECD = 'FOC_NONE';
-DEFAULTH &CLINIC = 'FOC_NONE';
-DEFAULTH &SUPERVISOR = 'FOC_NONE';
-DEFAULTH &MTH = '';
-DEFAULTH &WFFMT = 'HTML';
-DEFAULTH &LASTRUNDATE = '';


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 34 | Registered: December 17, 2012Report This Post
Expert
posted Hide Post
-DEFAULTH &LASTRUNDATE = '';
Your default date is blank.

You may need to add code to set the date if it is not passed from a parameter screen. Something like this:
-DEFAULTH &LASTRUNDATE = '';
-SET &LASTRUNDATE = IF &LASTRUNDATE EQ '' THEN &YYMD ELSE &LASTRUNDATE;


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
it was set to blank in report code. however it was set up to pull the highest date in the parmater panel,that is why when it runs, it runs at the highest date, but the date won't display
I can't paste the image here. in the propoerties and settings for parameter, I set it run from a .fex program which is the same as the code below to pull the highest date and sort the date by descending


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 34 | Registered: December 17, 2012Report This Post
Guru
posted Hide Post
Did your -TYPE &LASTRUNDATE returns anything?
-READFILE supports from 7.7.x.x, i beleive.


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Silver Member
posted Hide Post
I tried type &lastrundate both in the if and out of the if statement in the report code and I got the correct date- the highest date


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 34 | Registered: December 17, 2012Report This Post
Guru
posted Hide Post
Hi Jing grace,

quote:
In other words: the default date did not display, but if you hit run button , the date will display.

quote:
it was set to blank in report code. however it was set up to pull the highest date in the parmater panel,that is why when it runs, it runs at the highest date, but the date won't display


Both of your statements are contrary to other.

Simply, you're not able to pass the values of parameter named LASTRUNDATE from your HTML to fex?

What is the default value of &LASTRUNDATE in your fex? What do you expect in it? Can you tell me the flow?

What is this below code for?
quote:
TABLE FILE JOB_LASTRUN_LOG
BY HIGHEST 1 JOB_LASTRUN_LOG.JOB_LASTRUN_LOG.LASTRUNDATE
WHERE JOB_BATCH EQ 'CSR';
ON TABLE HOLD AS READCSRRD FORMAT ALPHA
END
-RUN
-READFILE READCSRRD
-TYPE &LASTRUNDATE  


Does your parameter fex has ON TABLE PCHOLD FORMAT XML ? Have you associated your parameters in "Additonal Parameters" button?

Are you in 7.6.x.x? If so, you must use -READ instead of -READFILE

You're struggling so much with LASTRUNDATE naming convention. Try giving different names. Wink

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


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report 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     [CLOSED] Run date display

Copyright © 1996-2020 Information Builders