change outgoing file name is vrl translation

Clovertech Forums Cloverleaf change outgoing file name is vrl translation

  • Creator
    Topic
  • #119530
    Gene Millard
    Participant

      I have a csv file as input. I would like to use the employee id, first name and last name fields to set the outgoing filename.   lastname_firstname_employeeid.csv.

      How would I do this in the translation?

      Gene Millard

      The Guthrie Clinic
      Sayre, PA

    Viewing 1 reply thread
    • Author
      Replies
      • #119531
        Jim Kosloskey
        Participant

          You could try to change the DRIVERCTL metadata key FILESET.FILEID to the value you want using xpm functions inside Tcl.

          If in the Xlate you cannot change the DRIVERCTL metadata, then place the value in the USERDATA Meta Data Field (use a keyed list) then in the OB Tps use the USERDATA infor to set DRIVERCTL (I know that will work).

          If you would like to chat offline about this, feel free to email me.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #119532
            Jim Kosloskey
            Participant

              Upon further reflection, I don’t think you can directly address the DriverCTL FILEST.OBFILE key from the Xlate but even if you could it would get reset at the Protocol.

              So you could place the data in the USERDATA metadata field (using a keyed list of course) with Tcl in the Xlate. Then in the OB Thread OB Tps another Tcl proc could extract the data from the USERDATA key and set the DRIVERCTL Metadata FILESET.OBFILE key.

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

          • #119533
            Charlie Bursell
            Participant

              After Xlate are the fields still available in the output data?  If so, simply pull them in an OB Data proc and set the DRIVERCTL Metadata FILESET.OBFILE key there.

          Viewing 1 reply thread
          • You must be logged in to reply to this topic.