ftp filename

  • Creator
    Topic
  • #48281
    Ross Stolle
    Participant

    Does anyone have a tcl Proc that would help me name my ftp files?  The naming convention I need is…

    2002_03_241_15_22.hdq

    where

    2002 = Practice ID  (I’ll just hard-code that)

    06 = Year

    241 = Julian Date

    15_22 = Military Time

Viewing 3 reply threads
  • Author
    Replies
    • #58250
      Anonymous
      Participant

      How about this?

      set filename [ fmtclock [clock seconds] 2002_%y_%j_%H_%m.hdq ]

      – and then –

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

      Does that get you what you’re needing?

      Karl Fisher

      PHNS Inc

      Dallas, Texas

    • #58251
      Ross Stolle
      Participant

      Karl,

       Thanks for the response.  Now, excuse my ignorance, but we’re limited users and this is the first FTP file we’ve sent through the engine.  Does the couple lines of code you gave me just go in the “RUN” section of the tcl?  Then how to I tell it to put the 2002 on the front?  Lastly, where do I attach this in the thread?  Thanks again.

      Ross

    • #58252
      Anonymous
      Participant

      Ross Stolle wrote:

      Karl,

    • #58253
      Ross Stolle
      Participant

      Karl,

       Thanks so much.  The only thing I had to change was _%m to _%M to get minutes instead of month.  Also, I attached the proc to the Post Procs section of the Xlate Route Details tab.  It seems to be working the way I want.  Again, thank you for your help.

      Ross

Viewing 3 reply threads
  • 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