Rick Pritchett

Forum Replies Created

Viewing 15 replies – 1 through 15 (of 143 total)
  • Author
    Replies
  • in reply to: Specify and process a file name with today’s date #83084
    Rick Pritchett
    Participant

      Here is what I finally got to work for me.

      in reply to: Specify and process a file name with today’s date #83083
      Rick Pritchett
      Participant

        Thanks guys with your help it is now grabbing only the file I am specifying in the script.

        in reply to: fileset-local reading a specific file extension #77590
        Rick Pritchett
        Participant

          Jim,

          Could I get a copy of these scripts?  I am trying to set the file list so that I only process the file that was created for today only.

          in reply to: Specify and process a file name with today’s date #83080
          Rick Pritchett
          Participant

            I have tried a few different ways.  Here is what I have gotten to and the script does not pick up my file.  Any ideas?

            #                

            proc tps_fileset_dir_parse { args } {

               global HciConnName                             ;# Name of thread

               

               keylget args MODE mode                         ;# Fetch mode

               set ctx “”   ; keylget args CONTEXT ctx        ;# Fetch tps caller context

               set uargs {} ; keylget args ARGS uargs         ;# Fetch user-supplied args

               set debug 0  ;                                 ;# Fetch user argument DEBUG and

               catch {keylget uargs DEBUG debug}              ;# assume uargs is a keyed list

               set module “tps_fileset_dir_parse/$HciConnName/$ctx” ;# Use this before every echo/puts,

                                                              ;# it describes where the text came from

               set dispList {}                                ;# Nothing to return

               switch -exact — $mode {

                   start {

                       # Perform special init functions

                       # N.B.: there may or may not be a MSGID key in args

                       

                       if { $debug } {

                           puts stdout “$module: Starting in debug mode…”

                       }

                   }

                   run {

                       # ‘run’ mode always has a MSGID; fetch and process it

                       

                       keylget args MSGID mh

             set filespec *.*; keylget args ARGS.FILESPEC filespec

             set file_list [msgget $mh]

                        echo $file_list

                       set date [clock format [clock scan now] -format %Y%m%d]

             

                       append my_filename Rick_file $date .csv

                       set outList {}

                       

                           lappend outList $my_filename

            echo outList $outList

                       echo $mh

                       msgset $mh $outList

                       lappend displist “CONTINUE $mh”

                   }

                   time {

                       # Timer-based processing

                       # N.B.: there may or may not be a MSGID key in args

                       

                   }

                   

                   shutdown {

                       # Doing some clean-up work

                       

                   }

                   

                   default {

                       error “Unknown mode ‘$mode’ in $module”

                   }

               }

               return $dispList

            }

            in reply to: Specify and process a file name with today’s date #83077
            Rick Pritchett
            Participant

              Is there a way to change the INBOUND filename so the it picks up a different file to process by name?  The name would have a date in it that would change.

              in reply to: CycleSave on 6.0 #82996
              Rick Pritchett
              Participant

                We are using Cloverleaf 6.0 on AIX 7.  And not using SmatDB.

                in reply to: Call stand alone proc in a tps proc #74980
                Rick Pritchett
                Participant

                  here is the proc

                  set arg_values $argv

                  set SERVER [lindex $arg_values 0]

                  in reply to: Call stand alone proc in a tps proc #74978
                  Rick Pritchett
                  Participant

                    command line.

                    in reply to: ODBC error #71337
                    Rick Pritchett
                    Participant

                      Well it looks like our trace is defaulted to 1 but, I don’t see a file being generated.  Here are the lines I am using to open the connection.

                      odbc SQLAllocHandle SQL_HANDLE_ENV SQL_NULL_HANDLE henv

                      odbc SQLSetEnvAttr $henv SQL_ATTR_ODBC_VERSION SQL_OV_ODBC3 0

                      odbc SQLAllocHandle SQL_HANDLE_DBC $henv hdbc

                      in reply to: ODBC error #71334
                      Rick Pritchett
                      Participant

                        how do i turn that on?

                        in reply to: Installing Cloverleaf 5.6 on Windows 7 (x64) #70133
                        Rick Pritchett
                        Participant

                          Ok copying the individual files worked for me.

                          thanks

                          in reply to: Installing Cloverleaf 5.6 on Windows 7 (x64) #70131
                          Rick Pritchett
                          Participant

                            Can you show us how you modified the patch?

                            in reply to: Installing Cloverleaf 5.6 on Windows 7 (x64) #70129
                            Rick Pritchett
                            Participant

                              By compatibility mode do you mean the virtual pc?

                              in reply to: x12 278 and United Healthcare – anyone doing this? #63014
                              Rick Pritchett
                              Participant

                                Why did you pull the plug?

                                in reply to: 270 Eligibility – version 5.7 #70614
                                Rick Pritchett
                                Participant

                                  cern_mlp_tcp.pdl:31:Unexpected end-of-file before ‘#}#’

                                  i got this after compiling the file any ideas?

                                Viewing 15 replies – 1 through 15 (of 143 total)