import command with filename containing a variable

Walter Vaughan Jr wvaughan at steelerubber.com
Tue Aug 15 08:37:45 PDT 2017


-----Original Message-----
From: Filepro-list [mailto:filepro-list-bounces+wvaughan=steelerubber.com at lists.celestial.com] On Behalf Of James Flanagan via Filepro-list
Sent: Tuesday, August 15, 2017 11:31 AM
To: Filepro_List <filepro-list at lists.celestial.com>
Subject: import command with filename containing a variable

I am trying to build a routine import command where the file name of the import would contain a respective variable of the record in am standing in.  Because quotes are not used when defining the filename, i realize that i cannot just throw a variable in there.  however, when i use parenthesis and quotes to attempt to achieve what i intend, it comes back with “NO SUCH FILE OR DIRECTORY”.  Using the EXISTS command, and identical syntax as below, it returns that the file does indeed exist.  

Is there a way to inject a variable successfully into the filename of the import command?  thank you very much, 

::import ascii data=("/tmp/addv/"{40) r=\n f=^A o=" c=":
--------------------------------------------

What happens when you do this?

::ta(255,)="/tmp/addv/"{40:
::import ascii data=(ta) r=\n f=^A o=" c=":


More information about the Filepro-list mailing list