template for using metadata

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf template for using metadata

  • Creator
    Topic
  • #48710
    Nora Katz
    Participant

      Does some have a template for saving information into metadata and then using the metadata in another proc?  I’m trying to pass a list of filenames to a OB thread (fileset-Local) and am having trouble reading the Userdata and extracting the filenames from the metadata.

    Viewing 3 reply threads
    • Author
      Replies
      • #59457
        Nora Katz
        Participant

          I did a search and found my answer in a previous post.  I didn’t understand the solution at that time, but now I get it!

        • #59458
          Michael Hertel
          Participant

            No template, but here’s the commands:


            msgmetaset $outMsg USERDATA $usrdata

          • #59459
            Nora Katz
            Participant

              Thank you for the confirmation.  The thought I could write to metadata in the “directory parse” proc, but now I realize that I was putting the code in the wrong place.

            • #59460
              Russ Ross
              Participant

                Just recently I had a need to utilize the USERDATA metadata that most on clovertech are aware of.

                I decided to attempt much of the journey for myself as a learning experience with the help and guidance of my co-worker Jim Kosloskey (thanks Jim buddy).

                Once my initial go at it was done, I searched on clovertech for other examples.

                I did not find many specific examples, so I decided to share my efforts for others that might benifit from having some specific examples in addition to the concept.

                In my case, I have the Xlate check if a document is too big for the field it gets mapped to.

                In the Xlate I set the USERDATA metadata to contain a keyed list entry for

                DMS_document_too_large_for_TRAN

                which gets set to “Y” when truncation occured and “N” when truncation did not occur.

                You will notice the proc (xlt_USERDATA_keylset.tcl) below that sets the USERDATA metadata in the Xlate uses xmp.

                # Begin Module Header ==========================================================
                #
                #——
                # Name:
                #——
                #
                # xlt_USERDATA_keylset.tcl
                #
                #———
                # Purpose:
                #———
                #
                # Set the USERDATA metadata keyed list entry
                #
                # If the specified USERDATA metadata keyed list entry does not exist it will be created.
                #
                # If the specified USERDATA metadata keyed list entry already exists then it will be overwritten
                #
                # Any other existing USERDATA metadata will be preserved.
                #
                #——–
                # Inputs:
                #——–
                #
                # xlateInVals 0 = @xlt_USERDATA_key
                #
                [code]# Begin Module Header ==========================================================
                #
                #


                # Name:
                #


                #
                # xlt_USERDATA_keylset.tcl
                #
                #


                # Purpose:
                #


                #
                # Set the USERDATA metadata keyed list entry
                #
                # If the specified USERDATA metadata keyed list entry does not exist it will be created.
                #
                # If the specified USERDATA metadata keyed list entry already exists then it will be overwritten
                #
                # Any other existing USERDATA metadata will be preserved.
                #
                #


                # Inputs:
                #


                #
                # xlateInVals 0 = @xlt_USERDATA_key
                #

                Russ Ross
                RussRoss318@gmail.com

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