Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Passing Nulls to Sql Server
Go
New
Search
Notify
Tools
Reply
  
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: 85 | Registered: February 27, 2009Reply With QuoteReport 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, 2005Reply With QuoteReport This Post
Guru
posted Hide Post
Instead of ELSE '' use ELSE MISSING.
 
Posts: 373 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport 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, 2007Reply With QuoteReport 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, 2006Reply With QuoteReport 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: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

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

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.