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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
is missing problem
 Login/Join
 
Gold member
posted
I have the following define in my code. It always evaluates to 0. Does anyone know why?

DEFINE FILE TEROT001_RDWY_CNTRT
FLAG1/I1=IF KEY_DATE IS MISSING THEN 1 ELSE 0;
END

KEY_DATE is of format I8YYMD
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
Guru
posted Hide Post
Change your define to

FLAG1/I1 MISSING ON =IF KEY_DATE IS MISSING THEN 1 ELSE 0;

and see what happens.



WebFOCUS 7.6.6/TomCat/Win2k3
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
Gold member
posted Hide Post
Thanks, Carol. I gave that a try without success. I was getting the KEY_DATE value from a HOLD file. It turnout the HOLD file was returning no records. I used the following code to resolve my issue. If this can be done a better way I'm open to suggestions.

-IF &LINES EQ 0 GOTO FLAG1;
-IF &LINES GT 0 GOTO FLAG2;
-FLAG1
-SET &FLAG = 1;
-GOTO DONE
-FLAG2
-SET &FLAG = 0;
-DONE
-TYPE FLAG &FLAG

Then used the &FLAG VALUE IN MY MAIN REPORT TO DETERMINE IF SOMETHING SHOLD BE ON OR OFF. Thanks for your help.
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
Expert
posted Hide Post
One thing on the missing front.

If you are going to use the MISSING attribute in your define then I would suggest that you set the alternate value to MISSING, otherwise there is no pointin the attribute.

FLAG1/I1 MISSING ON =IF KEY_DATE IS MISSING THEN 1 ELSE MISSING;

OR

FLAG1/I1 MISSING ON =IF KEY_DATE IS MISSING THEN 1;

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
Some Data sources are never missing like fix format master, hold files if missing was not set, etc. One way to code for all data type is to test like this.
  
FLAG1/I1 = IF KEY_DATE EQ '' THEN 1 ELSE IF KEY_DATE IS MISSING THEN 1 ELSE 0;




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
Gold member
posted Hide Post
I will give this a try on Tuesday. everyone have a great weekend.
 
Posts: 84 | Location: Tallahassee, Fl. | Registered: December 02, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders