Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.
Moderators: chulett, rschirm, roy
-
allavivek
- Premium Member
- Posts: 211
- Joined: Sat May 01, 2010 5:07 pm
Post
by allavivek »
Hi All,
I was trying to execute mv command in activity as follows..
#PATH#/#DataFilename#_#Time_Stamp.$CommandOutput#.dat #working_dir#/#InputFilename#
sequence was getting aborted and message coming as...
seq_xxxxxx.JobControl (@Data_File_Move): Executed: mv /home/xxxx/xxx/xxxxx_100908155936
Reply= /home/xxxx/xxx/xxxx_100117233700.dat
Output from command ====>
-1
I guess iam giving the correct command..
Any suggestions
Thank you
-
anbu
- Premium Member
- Posts: 596
- Joined: Sat Feb 18, 2006 2:25 am
- Location: india
Post
by anbu »
Check whether you are able to run mv command from unix shell
You are the creator of your destiny - Swami Vivekananda
-
allavivek
- Premium Member
- Posts: 211
- Joined: Sat May 01, 2010 5:07 pm
Post
by allavivek »
Yes it is working..
-
anbu
- Premium Member
- Posts: 596
- Joined: Sat Feb 18, 2006 2:25 am
- Location: india
Post
by anbu »
Did you pass this as parameter to command in Execute command activity?
Code: Select all
#PATH#/#DataFilename#_#Time_Stamp.$CommandOutput#.dat #working_dir#/#InputFilename#
You are the creator of your destiny - Swami Vivekananda
-
allavivek
- Premium Member
- Posts: 211
- Joined: Sat May 01, 2010 5:07 pm
Post
by allavivek »
Hi anbu Thank you for replying ..
Actually the error is the Time_Stamp param is having space appended to it causing mv to take .dat #working_dir#/#InputFilename# as target..
I placed uservariable activity before command and removed space...
thank you...
vivek