In sequence Unix error:

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

Post Reply
shilpa79
Participant
Posts: 131
Joined: Thu Jan 20, 2005 5:59 pm
Location: Virginia

In sequence Unix error:

Post by shilpa79 »

I am trying to move a file

BUSetup(1000001)20071119_200002.xml

with the special characters ( ) inside the file name I am not able to do that

Can anyone please let me know using which command I can remove those characters and rename the file or move the file

I am doing this in the sequencer stage

Thanks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Escaping them with a preceeding 'back-slash' would work.

BUSetup\(1000001\)20071119_200002.xml
-craig

"You can never have too many knives" -- Logan Nine Fingers
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

You can rename thE file using the mv command

Code: Select all

mv filename1 filename2
You can run this command in a before job routine and rename the file before you actually copy it. Or use an Execute command activity in your job sequence.

(Assuming that you meant a job sequence when you typed Sequencer stage)
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply