I am using the fileset-FTP protocol to fltp files from a remote server to the engine. I need to save the name of each file into the USERDATA of the metadata as the each is processed. I have checked the archives and found 3 tcl procedures provided by Ron Meijsen, but I cannot get them to work. The first procedure, “ExtractFTPfilename,” seems to work. At least I get a value for the global variable that is declared and get results when I echo the dispList variable. I am using this proc in the Fileset Options, running it from the FTP TPS Directory Parse box, hoping to retrieve the file name and put it in a global variable. Then I am running a 2nd procedure in the TPS Inbound Data, called “GetFTPfilename.” The purpose of this proc is to attach the file name, retrieved in the first proc, to the metadata. But the message never gets passed to the TPS Inbound Data. When I check the process log, all the echos for the first proceudure work. None of the echos in the second procedure show up. Would someone look at the attached procedures and tell me what I am missing or share a procedure that will put the file neame into the metadata?
Thank you!
Skip Williams
Peacehealth Interface Analyst
541 686-3710
skwilliams@peacehealth.org