Hi,
I am using Datastage 7.5.3 server edition on windows platform. I need to merge 3 files into 1 file i.e., Header file, footer file and data file which has got different number of columns. Could anyone assist me in this.
Need to merge 3 files having different no of columns
Moderators: chulett, rschirm, roy
Move to the actual Server forum.
Do your "header" and "footer" files contain a single row apiece? Or do you have multiple entries in each that need to be merged with the rows in the data file? For the former, the DOS copy command can do the trick for you:
You literally put the three filenames together with plus signs and then the new target table it will create after that. Of course, my example has relative paths, in reality you'll either need to "cd" there first or use absolute paths for all of them.
Now, if you need to do the "merge" thing, that's a whole 'nuther kettle of fish.
Do your "header" and "footer" files contain a single row apiece? Or do you have multiple entries in each that need to be merged with the rows in the data file? For the former, the DOS copy command can do the trick for you:
Code: Select all
COPY HEADER+DATA+FOOTER COMBO
Now, if you need to do the "merge" thing, that's a whole 'nuther kettle of fish.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers