I have used ExecuteCommandStage -----> Nested condition
Nested condition taking the Command Outpurt of ExecCommand Stage.
Exec Command use a unix command
cut -d , -f 1 filename , to Cut 1st char from a file.
Command giving proper output but it is adding extra space and line with the output value, so Nested condition stage is not working properly,, what is the solution??
Regarding Space with output
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 59
- Joined: Thu Mar 20, 2008 12:11 am
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Are you sure it's a space, and not a newline? I suspect the latter, which will have been converted to a field mark (@FM). You need to remove whatever it is from the $CommandOutput activity variable, for example using Convert() or Trim() function.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.