Hi Team,
Good Morning.
I have a requirement to create a dynamic query in the flat file.
Example : One input file will be an CSV file with comma delimited file having the Field name with Record length 80 and FB.
Field-1 ,Field-2,Field-3 ,Field-4
The other input file will be an CSV file with Comma delimited data corresponding to input File 1. This is also FB and lets have the record length as 500.
data1-1,data1-2,data1-3,data1-4
data2-1,data2-2,data2-3,data2-4
data3-1,data3-2,data3-3,data3-4
data4-1,data4-2,data4-3,data4-4
We need to generate the output file like mentioned below.
Insert into
XXX.ABC
(Field-1 ,Field-2,Field-3 ,Field-4)
values
(data1-1,data1-2,data1-3,data1-4) ;
commit;
Insert into
XXX.ABC
(Field-1 ,Field-2,Field-3 ,Field-4)
values
(data2-1,data2-2,data2-3,data2-4) ;
commit;
Insert into
XXX.ABC
(Field-1 ,Field-2,Field-3 ,Field-4)
values
(data3-1,data3-2,data3-3,data3-4) ;
commit;
Here Table name will be given as a constant one to one variable - TName = XXX.ABC
Thaks for your help in advance
Regards,
Jegan S