Hi,
I'm running a .bat file using command prompt stage.Bat file is executed successfully but job is failing with below error.
Command failed to execute - e:\apps\ascential\Projects\xxx>More? .
Log file is created which contains this message 'e:\apps\ascential\Projects\xxx>More?'
Please let me know what needs to be done to fix it.
Thanks in advance.
Command prompt stage throwing error at run time
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 13
- Joined: Fri Jun 22, 2007 1:29 am
- Location: Perth
Command prompt stage throwing error at run time
Lovesh Patni
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
? is a special character to the DOS shell. Don't use it. The Command stage needs to retain control - starting a background process means that it loses control.
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.
-
- Premium Member
- Posts: 13
- Joined: Fri Jun 22, 2007 1:29 am
- Location: Perth
What does the .bat file return? Anything? I haven't used that exact stage before (never having worked with a Windows based DataStage server) but if it's anything like the Execute Command stage, any kind of a non-zero return is considered a failure.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Where do the "?" characters in the error message come from?
Kartheek wrote:Command failed to execute - e:\apps\ascential\Projects\xxx>More? .
Log file is created which contains this message 'e:\apps\ascential\Projects\xxx>More?'
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.
Re: Command prompt stage throwing error at run time
The error message seems to convey for some invalid DOS command or a command couldnt run from the prompt like you see
DOS gives ? to get some help for erraneous command like you see below.
C:\Windows\System32>help ?
This command is not supported by the help utility. Try "? /?".
Did you try running the batch file from the DOS prompt first?
DOS gives ? to get some help for erraneous command like you see below.
C:\Windows\System32>help ?
This command is not supported by the help utility. Try "? /?".
Did you try running the batch file from the DOS prompt first?