I want to move huge number of files from one directory to another directory.
For that i wrote a routine, and when i test this routine it is just moving all the DataStage Repository files to the Target directory instead of moving only files from source path .
Code: Select all
OsType = 'UNIX'
Move = 'ls | xargs -t -I {} mv {}'
OsCmd = Move:' ' : SourceDir:' ':TargetDir
Call DSExecute(OsType,OsCmd,OsOutput,OsStatus)
Ans = OsStatus
Can anyone tell me what's wrong in the code, and how to move files if it is huge .
Thanks in Advance
Best Regards
Sasi