naming outbound messages

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf naming outbound messages

  • Creator
    Topic
  • #47933
    Kathy Young
    Participant

    We have a thread that writes to a file called requisition. Currently, whatever messages are translated are appended to the same file. Is there a way to have each message write to a separate file requisition1, requistion2, etc.?

    Thanks in advance!

    (Cloverleaf 3.8.1 on AIX 5.2)

    Kathy

Viewing 1 reply thread
  • Author
    Replies
    • #57104
      Mark Thompson
      Participant

      Kathy,

      In early versions of Cloverleaf there was a protocol called numfile that did exactly what you want.  I believe by 3.8.1 it had been converted to a Tcl proc.  Check your $HCIROOT/tclprocs directory for a file called numfile.tcl.

      If you have it, you add numfile to the Outbound Data TPS for your thread.  The proc requires 1 argument for filename.  You can use

      {NAME requisition.%9d} or {NAME requisition.%d}

      depending on whether or not you want leading zeroes in the filename.  We use the first form because the filenames sort nicely.

      We do not use the second (optional) argument for the name of the counter file.  It defaults to name-of-thread.CTR.  If you wanted your counter file to be called requisition.CTR instead of threadname.CTR, you could include the argument {CTR requisition}

      As a favor to my co-workers (and myself) I also change the Fileset/Local properties.  In the Outbound section you probably have File: requisition.  I change the filename to set_by_numfile_proc as a reminder of what is really happening.

      Hope this helps.

      Note to Quovadx staff:  Since the % character is very unusual in filenames, it would be really nice to just put requisition.%9d (or requisition.%timestamp) in the outbound filename parameter.

      -Mark

      - Mark Thompson
      HealthPartners

    • #57105
      Charlie Bursell
      Participant

      That proc is not in the $HCIROOT/tclprocs directory.  The proc you want, as a model, is named fileset_numfile_out.tcl and it is $HCIROOT/contrib.

      FWIW, there is also a directory parse model in there as well named fileset_dir_parse.tcl.

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

Forum Statistics

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