IBM Support

JR53470: WINDOWS BATCH SCRIPT USING THE FIND COMMAND BEHAVES DIFFERENTLY WHEN RUN FROM WITHIN DATASTAGE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • When running the below example (ForFind.Bat) bat script from the
    DOS command prompt.
    
    ForFind.Bat:
    echo Started > For_Find_Fed.res
    c:\windows\system32\find "Active" C:\ForFind.txt >>
    For_Find_Fed.res
    echo Finished >> For_Find_Fed.res
    
    The C:\ForFind.txt contains the below example entries:
    
    ForFind.txt:
    RowNumber0 Pending www
    RowNumber1 Active xxx
    RowNumber2 Archaic yyy
    RowNumber3 Active zzzz
    
    When running the ForFind.Bat script from the DOS prompt. The
    For_Find_Fed.res file contains the following as expected:
    
    For_Find_Fed.res:
    Started
    RowNumber1 Active xxx
    RowNumber3 Active zzzz
    Finished
    
    However, when calling the ForFind.Bat from within datastage. It
    produces the below incorrect results in the output file
    For_Find_Fed.res.
    
    For_Find_Fed.res:
    Started
    Finished
    

Local fix

  • Youcan replace the find command with findstr
    

Problem summary

  • Will be considered for a future release
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    JR53470

  • Reported component name

    WIS DATASTAGE

  • Reported component ID

    5724Q36DS

  • Reported release

    912

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-05-28

  • Closed date

    2016-02-19

  • Last modified date

    2016-02-19

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

Applicable component levels

  • R912 PSN

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSVSEF","label":"IBM InfoSphere DataStage"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"912","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
19 February 2016