Hey all,

trying to insert (SQLRPGLE) a record into a file, several fields could
be null, could be not.

D $DueNull                       2b 0

C/exec sql
C+
C+   insert
C+     into    MYFILE
C+  values( default   ,
C+           :$DEPT     ,
C+           :$DueDate :$DueNull  ,
C+            default       )
C+           with    NC
C+
C/end-exec

Will this work?   If I set $DueNull = -1, the field will be null, if
0, not null?

Thanks,

Rick


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.