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] Need calculation coding help

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Need calculation coding help
 Login/Join
 
Gold member
posted
I am trying to debug a launch page that was previously working.

The code pulls a 2 digit month and a 4 digit year from a view, then puts them together. Then depending on the year/month combo the user picks (for start date), it then calculates and displays that date and the option for the next 11 months. ie: If you pick 2008/11 for the start date, you have options of 2008/11, 2008/12, 2009/01, 200902, etc, for 11 months.
If no rows make it though that check it reverts to a error message.

Recently, no rows are making it, so there is nothing to choose from. Checked the view, and there are dates in it. The code to me looks right, but I am not very familiar with it. Anyone have any ideas?

-DEFAULT &FROM_YEAR = '2003';
-DEFAULT &FROM_MONTH = '08';

-SET &YRMNTH = '&FROM_YEAR.EVAL'||'&FROM_MONTH.EVAL';

SQL SQLDBC
SELECT DISTINCT YR, MNTH FROM DMODOR_RPT.V_FINDINGS_COLLECTIONS
-IF &FROM_YEAR EQ ' ' THEN GOTO SKPFIL;
WHERE cast(YR||MNTH as date format 'YYYYMM') BETWEEN cast('&YRMNTH' as date format 'YYYYMM')
AND cast('&YRMNTH' as date format 'YYYYMM') + INTERVAL '11' MONTH
AND YR <> '0000'
-SKPFIL
;
TABLE FILE SQLOUT
PRINT YR MNTH
ON TABLE HOLD AS YEARS FORMAT FOCUS
END
-RUN
-IF &RECORDS EQ 0 THEN GOTO NODATA;

-NODATA
-HTMLFORM BEGIN
No forward years/Months
-HTMLFORM END
-EXIT

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


Kevin
______________________
Production: WebFocus 7.6.11 on Win2K3 Server
Test: WebFocus 7.6.11 on Win2K3 Server
Formats: Excel2K, PDF, HTML
 
Posts: 79 | Registered: February 29, 2008Report This Post
Virtuoso
posted Hide Post
Have some date formats changed?
Take the where statment out and see what the data looks like.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report 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] Need calculation coding help

Copyright © 1996-2020 Information Builders