Hi ProgressTalkers,
I am trying to develop a common program to compare two delimited flat files and generate a delta.
I have opted to use the dynamic objects to develop this program.
This following is the glance of the design:
1) Check both the files have same format (First row is the header/field name).
2) Load both the files into two temp-tables (Temp-table will be build dynamically
as the file format may change from file to file).
3) Open the Dynamic Query for one first table(for each...).
4) Try to get the same record from the second table using the unique index on both the tables.
5) If the record available in the second table then do the buffer-compare to check the data got modified.
I tried to use the field-name in the leftside and I am getting the error 7328 while preparing the query at step 4.
table contains(tt-tbl1) the following two fields:
Code
Description.
table contains(tt-tbl2) the following two fields:
Code
Description.
bufhdl1 = tt-tbl1:handle.
buffld = bufhdl1:buffer-field(1).
...
qrystr = "for each tt-tbl where Code = '" + buffld:buffer-value + "'".
...
Could some one help me on how to generate dynamic queries on dynamic temp tables i.e. Adding Where Clause on a dynamic temp-table. I am using progress 9.1D.
I appreciate your earliest reply.
I am trying to develop a common program to compare two delimited flat files and generate a delta.
I have opted to use the dynamic objects to develop this program.
This following is the glance of the design:
1) Check both the files have same format (First row is the header/field name).
2) Load both the files into two temp-tables (Temp-table will be build dynamically
as the file format may change from file to file).
3) Open the Dynamic Query for one first table(for each...).
4) Try to get the same record from the second table using the unique index on both the tables.
5) If the record available in the second table then do the buffer-compare to check the data got modified.
I tried to use the field-name in the leftside and I am getting the error 7328 while preparing the query at step 4.
table contains(tt-tbl1) the following two fields:
Code
Description.
table contains(tt-tbl2) the following two fields:
Code
Description.
bufhdl1 = tt-tbl1:handle.
buffld = bufhdl1:buffer-field(1).
...
qrystr = "for each tt-tbl where Code = '" + buffld:buffer-value + "'".
...
Could some one help me on how to generate dynamic queries on dynamic temp tables i.e. Adding Where Clause on a dynamic temp-table. I am using progress 9.1D.
I appreciate your earliest reply.