How to copy a file from a different machine on a network to.
Posted: Wed Jul 13, 2005 3:34 pm
Hi All,
I need to copy a flatfile from one machine on the network to the DataStage Server box. How do I achieve this? If I should write a DOS command, Can I write the "copy" command in the "ExecDOS" as a before job subroutine?
My Source location is
\\xxxx\yyy\zzzz\output\ART_SAP_TO_FMI.txt
My target location is
E:\datastage\int400\input\
Can I write the below command as the input value for the "ExecDOS" in the before job subroutine?
Will this copy the source file into the target location before the actual job starts? If not, please let me know any other ways of doing it.
Thanks in Advance,
Naveen.
I need to copy a flatfile from one machine on the network to the DataStage Server box. How do I achieve this? If I should write a DOS command, Can I write the "copy" command in the "ExecDOS" as a before job subroutine?
My Source location is
\\xxxx\yyy\zzzz\output\ART_SAP_TO_FMI.txt
My target location is
E:\datastage\int400\input\
Can I write the below command as the input value for the "ExecDOS" in the before job subroutine?
Code: Select all
copy \\sapfs1\D01\int400\output\ART_SAP_TO_FMI E:\datastage\int400\input\
Thanks in Advance,
Naveen.