Use a variable in an export path
Chris Sellitto
sellich at guaranteedreturns.com
Mon Apr 20 10:13:12 PDT 2015
> Hi All,
>
>
>
> I have an export where I'm setting the export path. Currently I am
> hard-coding the path for each user that needs to access the export so it
> goes to their user folder on our windows server. filePro is installed
> on
> CentOS 6.2. I can get the name of each user using a variable in filePro
> but I don't know how to insert the variable into the path. Below is a
> sample of how I've tried it but it's not working. nm is the variable
> that holds the user's full name and fn is the variable being used for
> the file name.
>
>
>
> fn="/appl/user_exports/users/'nm'/filepro/export.txt"
>
>
>
>
>
> openit subroutine:
>
> export ascii file=(fn) r=\n f=|
>
>
>
> Thanks,
>
>
>
> Josh Reader - Systems Analyst
>
[...]
Josh,
Please explain, "it's not working"? Are you receiving an error?
I am not familiar with CentOS, but shouldn't the syntax be as follows?
fn="/appl/user_exports/users/'{nm{'/filepro/export.txt"
Notice the brackets around variable NM.
Chris
More information about the Filepro-list
mailing list