3 Replies Latest reply on Jan 31, 2019 8:53 AM by Sourin Biswas

    For Loop in powershell

    Sourin Biswas

      We have a .txt file of orderid where data of orderid is in column like below. we are running loop to run to HOLD jobs.

      foreach ($i in "C:\temp\final.txt"){ctmpsm -UPDATEAJF $i HOLD}

       

      Please help as this is not working giving below error.

       

      Failed to Hold Orderno 00nj4uxd. (rc=DB_EOS).

       

       

      00000jsu

      00000jv2

      00000ju8

      00000jua

      00000juc

      00000jue

      00000jt0

      00000jun

      00000jum

      00000juo

      00000jup

      00000ju4

      00000juk

      00000jug

      00000jui

      00000jul

      00000juz

      00000juy

      00000juw

      00000jv1

      00000jsy

      00000jss

      00000jsw