Increment file name

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Increment file name

  • Creator
    Topic
  • #51888
    marcus robinson
    Participant

      I am a newbie to Cloverleaf and I would like to know how to increment the output file name?  Right now all files per route have the same file name that is just being overwritten and I would like each file to have it’s own name.

    Viewing 5 reply threads
    • Author
      Replies
      • #72142
        Jim Kosloskey
        Participant

          Marcus,

          You will need to deploy Tcl.

          There is an example Tcl proc in the $HCIROOT/contib directory called fileset_numfile_out.tcl.

          Others have customized that script to meet their needs and maybe someone will offer to share with you.

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

        • #72143
          marcus robinson
          Participant

            Thanks Jim

          • #72144
            Nate Kruse
            Participant

              I’m sure this isn’t perfect as it was written in crunch-time during a go-live, but it works for me.  It appends the current date to the file.

              Nate.

            • #72145
              Charlie Bursell
              Participant

                Be very careful when making unique file names from date and/or time. The granularity of time is in seconds.  Cloverleaf can process several records in one second. If you are doin a real-time interface you can overwrite files.

              • #72146
                Nate Kruse
                Participant

                  Charlie Bursell wrote:

                  Be very careful when making unique file names from date and/or time. The granularity of time is in seconds.

                • #72147
                  Russ Ross
                  Participant

                    Sounds similar to the old numfile protocol that was taken out of Cloverleaf but can still be done with TCL.

                    Here is a post I made illustrating how I did one such integration:

                    <a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1663&highlight=numfile&#8221; class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1663&highlight=numfile

                    Russ Ross
                    RussRoss318@gmail.com

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