Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

AS400 SQL Insert with multiple files

Avatar of Lynn Harris
Lynn HarrisFlag for United States of America asked on
Operating SystemsSoftwareDB2
3 Comments1 Solution708 ViewsLast Modified:
I would like to use SQL to insert record to a file after joining them on a number of criteria, but it keep giving a 'Column qualifier or table B undefined.' error.    I have no time to look this up production payroll issue...... HELP


insert into lwmdata2/cmtlcmp                                    
values (b.cd1dat,b.cd1div,b.cd1crw,b.cd1odt,b.cd1otm,b.cd1idt,  
b.cd1itm,b.cd1rem,b.cd1drv,b.cd1prd,b.cd1hld,b.cd1num,b.cd1opr,  
b.cd1rov,b.cd1ex2,b.cd1ex3,b.cd1ex4,b.cd1ex5,                    
a.cd1dat,a.cd1div,a.cd1crw,a.cd1odt,a.cd1otm,a.cd1idt,          
a.cd1itm,a.cd1rem,a.cd1drv,a.cd1prd,a.cd1hld,a.cd1num,a.cd1opr,  
a.cd1rov,a.cd1ex2,a.cd1ex3,a.cd1ex4,b.cd1ex5)                    
from  lwmdata2/ccd1fil a, qs36f/ccd1fil b                        
where a.cd1dat=b.cd1dat and a.cd1hld=' ' and                    
      a.cd1crw=b.cd1crw                                          
 and a.cd1dat>=20100111 and a.cd1dat<=20100221                  
and a.cd1drv in                                                  
(205,232,235,335,381,456,459,500,511,515,643,                    
  654,736,754,849,908,927,960,1017,1033,1047,1076,1080,1099,1111,
  1115,1118,1119,1121,4401,4402,4403,4406,4408,4409,4412,4414,  
  4448,4456,4457,4460,4461,4462,4470,4498,4501,4508,4513,4516,  
  4551,969,1114,4478,4486,4487,4488,4489,4491,4493,4494,4509,  
  4510,4523,4524,4525,4535,4537,4545,4556,4558,4563,4571,4573,  
  4575,4579,4582,4585,4586,4587,4588,4596,4599,4600,4601)      
order by b.cd1drv, b.cd1dat                                    

Thanks!!!
 
ASKER CERTIFIED SOLUTION
Avatar of Kent Olsen
Kent OlsenFlag of United States of America imageData Warehouse / Database Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers