Column qualifier or table SLGRREP undefined.
update yyyyy/slf1rep set F1_CAP_AT_END = 'C'
where (xxxxx/slgrrep.grbss || ' ' || xxxxx/slgrrep.grggr) =
in (select yyyyy/slf1rep.f1BSS || ' ' || yyyyy/slf1rep.F1GGR
from xxxxx/slgrrep, yyyyy/slf1rep, xxxxx/slsyrep
where
SLF1REP.F1_END_DATE >
SLSYREP.SY_PROCESSING_DATE and SLGRREP.GR_LOAN_TYPE = 'abcd'
and F1_TYPE_OF_DEFER_FORB between 'z01' and 'z99' and
F1_ACTIVE_INACTIVE_STS = 'A' and F1_CAP_AT_END = ' ' and
SLF1REP.F1_CANCELED_FLAG = ' ')
What is wrong with this As400 SQL statment?
Software/Hardware used:
ASKED:
February 15, 2005 4:27 PM
UPDATED:
October 20, 2009 1:58 AM
In your code,
SLF1REP.F1_END_DATE >
SLSYREP.SY_PROCESSING_DATE and SLGRREP.GR_LOAN_TYPE = ‘abcd’
and F1_TYPE_OF_DEFER_FORB between ‘z01′ and ‘z99′ and
F1_ACTIVE_INACTIVE_STS = ‘A’ and F1_CAP_AT_END = ‘ ‘ and
SLF1REP.F1_CANCELED_FLAG = ‘ ‘)
it appears that the end bracket at the end of your statement doesn’t have a corresponding open bracket anywhere else in the code. Not sure if that’s it or not since I don’t have all of your code but that looks suspicious.
Good luck with it…I’m sure someone in here will solve it for you, there are a lot of very smart people watching and replying to messages in here. Take care.
As you notice, in the first WHERE statement, the ‘=’ is followed by ‘IN’. I don’t think that possible.
update yyyyy/slf1rep set F1_CAP_AT_END = ‘C’
where (xxxxx/slgrrep.grbss || ‘ ‘ || xxxxx/slgrrep.grggr) = in (select yyyyy/slf1rep.f1BSS || ‘ ‘ || yyyyy/slf1rep.F1GGR
from xxxxx/slgrrep, yyyyy/slf1rep, xxxxx/slsyrep
where