Hi Raj,
What I have configured is I wrote a simple TCL script like this:
###################################
proc ftp_dir_parse_pattern_[SOMETHING HERE]_ib { args } {
global HciConnName HciSiteDir
set module “ftp_dir_parse_pattern/$HciConnName”
keylget args MODE mode
set dispList {}
switch -exact — $mode {
start {}
run {
set uargs {}; keylget args ARGS uargs
set debug 1
set today [clock format [clock seconds] -format {%Y%m%d}]
set pattern “Patient_$today.txt”
catch {keylget uargs PATTERN pattern}
set outList {}
set dispList {}
if {$debug} {puts “DEBUG: $module: pattern: $pattern”}
keylget args MSGID mh
set fileList [msgget $mh]
set outList {}
foreach fileName $fileList {
if {[regexp $pattern $fileName]} {
#echo ” FOUND A FILE”
if {$debug} {puts “DEBUG: $module: fileName: $fileName”}
lappend outList $fileName
}
}
if {$debug} {puts “DEBUG: $module: outList: $outList”}
msgset $mh $outList
lappend dispList “CONTINUE $mh”
}
time {
echo ” ################## IN PROC: TIME MODE ###############################”
}
shutdown {}
default {}
}
return $dispList
}
###################################
Then, put the newly created tcl in the “Directory Parse:” section of the TPS in the Inbound area. Hope this helps