DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
This topic has been marked "Resolved."
Author Message
faujong
Participant



Joined: 17 Aug 2018
Posts: 11

Points: 158

Post Posted: Fri Aug 17, 2018 3:29 pm Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
How can I use the following EXECSH command in After-job subroutine ?
Code:
for file in /dev/DataStage/myProject/source/TEST/MyFile_*.csv; do echo "Testing" done

The above code gives an error "sh: -c: line 1: syntax error: unexpected end of file"

Thank you
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 43036
Location: Denver, CO
Points: 222146

Post Posted: Fri Aug 17, 2018 5:04 pm Reply with quote    Back to top    

I would highly suggest you do all of your testing directly from the server's command line and get something working there on a single line. Once it's working, stick it in your ExecSH.

_________________
-craig

I've all my wisdom teeth, Two up top, two beneath
And yet I'll recognize my mouth says things that aren't so wise
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54541
Location: Sydney, Australia
Points: 295742

Post Posted: Sun Aug 19, 2018 6:31 pm Reply with quote    Back to top    

Perhaps another semi colon between the echo command and the done loop terminator?

_________________
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Rate this response:  
Not yet rated
faujong
Participant



Joined: 17 Aug 2018
Posts: 11

Points: 158

Post Posted: Mon Aug 20, 2018 9:06 am Reply with quote    Back to top    

Yes, that's it. Thank you Ray!!
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours