× 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.



Hi

when I run below qry I get "Null values not allowed in column or variable optcod"..how do I solve this?

update file a set optcod=(select
noptcod from bscfile b
where a.optcod=b.ioptcod)

The sql displays line " Null values not allowed in column or variable optcod"


Kindly respond asap.


Warm Regards,
JoeP





From: rob@xxxxxxxxx
Reply-To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
To: RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
Subject: Re: sql question
Date: Tue, 3 Oct 2006 11:51:36 -0400

Go to the FAQ at http://faq.midrange.com and file how to process xls
spreadsheets in RPG.  Maybe search for hssf.  Then read those bad boys and
UPDATE them out using traditional RPG, or change your update statement to:
UPDATE file SET optcod=:NewOptcod WHERE futcod=:ifsFutcod
AND  Client=:ifsClient and optcod=:oldOptcod


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





"Joseph Pascoguin" <joe.pascoguin@xxxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
10/02/2006 02:24 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
rpg400-l@xxxxxxxxxxxx
cc

Subject
sql question






Hi,

I ve a file in which futcod, descr, client & optcod are few of the fields.
I 've an xl sheet from the client to replace optcod values with new optcod

values.
xl sheet contains 5 columns futcod, descr, client &optcod

I did simple sql

UPDATE file SET optcod='OPTWS' WHERE futcod='FUT01'
AND  Client='GOLDMAN' and optcod='INXMO'

Since the number of entries(around 50) in the xl sheet are less, I opted
for
this simple manual SQL.

How  to handle this differently by using a program when the list is big or

some times we get 3 to 4 xl sheets from the client(optcod values changes
from time to time!)?


Warm Regards,
JoeP

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.