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     Is there a way to set MISSING ON to all InfoAssist DEFINEs by default?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Is there a way to set MISSING ON to all InfoAssist DEFINEs by default?
 Login/Join
 
Member
posted
Is there a way to set MISSING ON to all InfoAssist DEFINEs by default?

Right now, if MISSING ON is not added to a DEFINE format

E.g., Date_Quarter/Q = DATECVT (HDATE(DateOfBirth,'YYMD'), 'YYMD','Q')

The DEFINE evaluates to "Q4" for records that do not have a date time

E.g.:

ID Date Date_Quarter
===========================

1001 1/1/2009 Q1
1002 . Q4
1003 . Q4


The above Define output is incorrect for the last 2 records.

If a user types in MISSING ON after "Q" format in DEFINE, then the DEFINE properly evaluates missing/blank values:

E.g., Date_Quarter/Q MISSING ON = DATECVT (HDATE(DateOfBirth,'YYMD'), 'YYMD','Q')

ID Date Date_Quarter
===========================

1001 1/1/2009 Q1
1002 . .
1003 . .


WebFocus v8002M
Windows 2008
InfoAssist reports
 
Posts: 7 | Registered: October 03, 2012Report This Post
Master
posted Hide Post
First, I don't know of any setting to default MISSING ON for all DEFINES.

For this issue, do a ? SET ALL and what is the value of DATEDISPLAY? If it is OFF, then I would say you have a bug in the HDATE and/or the DATECVT Functions. I suspect that either or both are converting the null date to the base/zero date (12/31/1900) and DATECVT is returning Q4 because that date is Q4 for 1900. However if DATEDISPLAY is OFF, then I would say the expected return value is blank (not null or Q4).

DATEDISPLAY
The DATEDISPLAY parameter controls the display of date format fields that contain the value zero. When set to on, the base date is displayed for those fields. By default, the value zero in a date format field, such as YYMD is returned as a blank.

The syntax is:

SET DATEDISPLAY = {ON|OFF|COMP}
where:

ON
Returns the base date for a date format field containing the value zero.

OFF
Returns a blank for a date format field containing the value zero. OFF is the default.

COMP
Returns a z/OS compatible blank for a date format field containing the value zero. The COMP value is required to return a blank in portable code.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Member
posted Hide Post
It's OFF (DATEDISPLAY OFF ) so looks like the functions do not evaluate null/missing properly.


WebFocus v8002M
Windows 2008
InfoAssist reports
 
Posts: 7 | Registered: October 03, 2012Report This Post
Master
posted Hide Post
Jgeorge, I suggest you open a case with IBI. In the meantime you can get around this issue with this:
Date_Quarter/Q MISSING ON=
  IF DateOfBirth IS MISSING
    THEN MISSING ELSE DATECVT (HDATE(DateOfBirth,'YYMD'), 'YYMD','Q');


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 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     Is there a way to set MISSING ON to all InfoAssist DEFINEs by default?

Copyright © 1996-2020 Information Builders