Page 1 of 1

mv Unix command is not working in EC stage

Posted: Wed Oct 29, 2014 6:05 am
by bala.vimalan
mv Unix command is not working in EC stage (Execute Command), When I pass the paramater which I have calculated in another EC stage prior to mv command.

Prior EC stage Output :20141029065539

Command : mv
parameter : /u01/apps/DS_PROJ_DATA/AST_FUSION_DEV/LoadFiles/MIRF_Reject.txt /u01/apps/DS_PROJ_DATA/AST_FUSION_DEV/LoadFiles/MIRF_#EC_Timestamp.$CommandOutput#.txt

Error :

mv /u01/apps/DS_PROJ_DATA/AST_FUSION_DEV/LoadFiles/MIRF_Reject.txt /u01/apps/DS_PROJ_DATA/AST_FUSION_DEV/LoadFiles/MIRF_20141029065539
Reply=.txt
Output from command ====>
-1

Posted: Wed Oct 29, 2014 6:52 am
by vinothkumar
Try with this derivation in EC stage which generates YYYYMMDDHHMMSS.
Convert(@FM,'',Execute_Command_3.$CommandOutput)

Posted: Wed Oct 29, 2014 7:00 am
by bala.vimalan
Thank you for the prompt reply Vinoth. It has worked. :)
I will mark it as resolved.

Posted: Wed Oct 29, 2014 8:10 am
by chulett
Do you have any idea what it is doing and why it worked?

People, don't just hand out code - at the very least explain what it is you are handing out as well. :?