× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Not positive, as I don't use SQL near enough, but have you tried spelling NULL 
AS NUL?

Other than that, it may be a DB2 issue.

Regards,

Jim Langston

jagbir singh wrote:

> Hi All,
> Hope someone can help on SQL. I am trying to insert a record with NULL in
> the field and online SQL is not alloing me to do it. May be i am writing the
> wrong statement. Pl help me out in this thing. Hope to hear from someone
> soon..My SQL statement is as follows..
>
> Insert into jtbtst/ps_tw_dtl_gl_tmp select
> process_instance, seq_nbr, business_unit,currency_cd, cur_exchng_rt,
> tw_account_apar, tw_account_cr, tw_account_dr,account_d, tw_detail_dt,
> tw_defacct_ptr, tw_def_timing, statistics_code, tw_act_amt, act_units, ' ',
> ' ', ' ', ' ', tw_atlas_id, batch_num,' ', null,'2000-08-04', '',  from
> jtbbprd/ps_tw_detail  where process_instance = '95045'
>
> Pl reply soon.
> Thanks

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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.