IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  WTX v8.2 - Batch Adapter - Issues with doing XCOPY inside batch file

    Posted 12/17/10 10:04 AM

    Originally posted by: SystemAdmin


    Would anyone know why the v8.2.0.5 Batch Adapter running on XP wouldn't recognize the XCOPY within a batch file? It's like WTX just skips over the just that particular command. The batch file works perfectly from a command prompt. Also, I am able to echo the XCOPY command to see that it is getting to the point in my script. Just odd.

    Thanks and frustrated!
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: WTX v8.2 - Batch Adapter - Issues with doing XCOPY inside batch file

    Posted 12/17/10 11:01 AM

    Originally posted by: GerryCullen


    This is not a problem unique to WTX, but relates to a known problem with certain older DOS commands. Certain DOS commands (i.e., find, xcopy) will fail when run as a service (or with no stdin/stdout) due to requiring STDIN to be present, even though they require no input in the manner they're being used.

    I'm fairly certain that you will be able to resolve this by providing a very basic level of stdin support to XCOPY by echoing a few bytes of data ("echo.") and piping to the command being executed. For example, in your batch file, instead of:

    xcopy /c /d /e /k /r /v /y C:\tmp\dir1 C:\tmp\dir2\

    try:

    echo. | xcopy /c /d /e /k /r /v /y C:\tmp\dir1 C:\tmp\dir2\

    For additional details:
    Ken Henderson's WebLog - Subtle bugs #2
    AutoIt Forums > AutoIt v3 > General Help and Support > StdoutRead, Problem When Compiled
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: WTX v8.2 - Batch Adapter - Issues with doing XCOPY inside batch file

    Posted 12/17/10 11:35 AM

    Originally posted by: SystemAdmin


    Adding the "echo. |" in front of my XCOPY worked like a charm! I should have asked yesterday as your reply would have saved me a ton of time. Thank you!
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange