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  iWay Software Product Forum on Focal Point    Passing Nulls to Sql Server

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Passing Nulls to Sql Server
 Login/Join
 
Gold member
posted
In My synonym I have

DEFINE MYDATE/MDYY MISSING ON=IF LENV( TRIMV('T', DLVY, 20, ' ', 1, 'A20V'), 'I8') NE 0 THEN
DATECVT(EDIT( TRIM('T', DLVY, 20, ' ', 1, 'A20'), '99$99$9999' ), 'A8MDYY', 'MDYY')
ELSE
'';

But when the flows run it inserts 1900-12-31 00:00:00 where ever a date was not given. I thought 'MISSING ON' passed Null to the targate sql


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
Virtuoso
posted Hide Post
Try
ELSE MISSING;
in place of
ELSE '';

'' represents the date value that WebFocus displays as blank (and 12/31/1900 is reserved for that purpose); MISSING, the null value, is something else.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Guru
posted Hide Post
Instead of ELSE '' use ELSE MISSING.


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Virtuoso
posted Hide Post
If ELSE MISSING doesn't solve the problem, you may need to SET DATEDISPLAY = OFF at the top of your program to prevent the base date from populating null dates.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Also include SET HOLDMISS = ON at the top of your code , this will ensure
that when you issue the ON TABLE HOLD AS something FORMAT SQLORA any missing/nulls
will not get populated with a default date.


Developer Studio Release : 7.6.11
 
Posts: 21 | Location: TataSteel Strip Products UK , Port Talbot , South Wales | Registered: November 28, 2006Report This Post
Gold member
posted Hide Post
ELSE MISSING Got it.

thanks everyone


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Passing Nulls to Sql Server

Copyright © 1996-2020 Information Builders