Page 1 of 1

Specific patterns file name and path change

Posted: Fri Jan 16, 2015 10:57 am
by Amin
How to move to another folder and rename specific pattern files using shell script in Datastage like file_name_currentDate()_123.txt to file_name to file_name_olddate.txt ?

Posted: Fri Jan 16, 2015 11:02 am
by chulett
The same way you'd do it without DataStage. Do you need help with the 'in DataStage' part or the actual scripting?

Posted: Tue Jan 20, 2015 11:56 am
by Amin
Yes we want Script but the new filename will be generated from DataStage using user variable stage of Sequence job and pass variable to script.

Posted: Tue Jan 20, 2015 12:02 pm
by qt_ky
There is more than one way to do it. What have you tried so far, and which part do you need some help with? Please be specific.

Posted: Tue Jan 20, 2015 3:18 pm
by ray.wurlod
Have DataStage generate the file name and pass it to a script as a command line argument.