XLATE Question

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf XLATE Question

  • Creator
    Topic
  • #51543
    Jerry Tilsley
    Participant

      Ok, I do not usually use xlates (I prefer tcl), but I am trying to modify and existing xlate to write the MSH.10 field (unique message number) to the driver control to set the outbound filename.  I have copied the MSH.10 field to a temporary variable called @MSH10.

      I have the following code so far, what value is in the xlateInVals?  Is that what is specified in the xlate source for this action (I’m guessing yes.)?

      Code:


      upvar xlateId       xlateId      
          xlateInList   xlateInList  
          xlateInTypes  xlateInTypes  
          xlateInVals   xlateInVals  
          xlateOutList  xlateOutList  
          xlateOutTypes xlateOutTypes  
          xlateOutVals  xlateOutVals

      set filename [lindex $xlateInVals 0]

      msgmetaset $mh DRIVERCTL “{FILESET {{OBFILE $filename}}}”

      Thanks!

      Jerry

    Viewing 0 reply threads
    • Author
      Replies
      • #70718
        Jim Kosloskey
        Participant

          Jerry,

          You are correct regarding xlateInVals.

          However, you would use xpmmetaset not msgmetaset to set the metadata in an Xlate.

          Also, unless you are COPYing MSH-10 to a temp variable for some other reason, there is no need (no harm but no need) to do that just to reference MSH-10 for this proc.

          You could use MSH-10 directly as the Source for your purposes.

          email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.