Reply To: Fileset-Local – Renaming an output file when finished

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Fileset-Local – Renaming an output file when finished Reply To: Fileset-Local – Renaming an output file when finished

#57008
Rentian Huang
Participant

You could use a upoc thread, first make sure the OB queue of OB thread and xlt queue of the IB thread are both 0, then another tcl to change the file name. Put the below tcl in the Read TPS inside the UPoC properties.

Hope this helps,

Sam 🙂


          set ib_thread adt_eagle_only

  set ob_thread star_adt_eagle

          set ob_stats [msiGetStatSample $ob_thread]

  keylget ob_stats OBDATAQD ob_q

  set ib_stats [msiGetStatSample $ib_thread]

  keylget ib_stats INTERTHREAD inter

  foreach thread $inter {

     keylget thread NAME name

     if {[cequal $name $ob_thread]} {

keylget thread POSTXLTQD xlt_q

break

     }

  }

          if {$ob_q == 0 && $xlt_q == 0} {

      # change the output file name

     

  } else {

      echo “Continue scanning…”

      return “”

  }

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,435
Topic Tags
286
Empty Topic Tags
10