Getting Initiator's UserID for an External -v table process
Bruce Easton
bruce at stn.com
Sat Aug 27 19:03:40 PDT 2016
Stanley,
The -rz switch is meant to be immediately followed by a space and then
the argument that it will pass. In your example, you have it followed
by other flags. The end of your line should simply be:
Then: system "........ -rz"<@id
or as Ken said: "........ -rz '" & @id & "'"
Both of those should ensure that you're leaving a space before the
argument value. You might have been confusing his unrelated single
quote usage with your quote usage for the "-h" argument.
Alternatively, you could also set an environment variable just before
the system call that you can then read inside the output request processing:
Then: putenv "currid", at id
Then: system .............
Then inside report:
Then: id=getenv("currid")
Bruce
On 8/27/16 8:42 PM, Stanley - stanlyn.com via Filepro-list wrote:
> Hi Ken,
>
>>> You forgot something critical from my example:
> I don't think so... I included the exact command so you can see, and it includes all the stuff you provided including the -rz switch. Please elaborate. I even removed the whole -h switch to get away from issues the quotes may be causing.
>
> The documentation is severely lacking in this area with only brief descriptions and no usage examples. I'm using the online version.
>
> Thanks,
> Stanley
>
>
>
>
>
> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at spamcop.net]
> Sent: Saturday, August 27, 2016 7:03 PM
> To: Stanley - stanlyn.com <stanley at stanlyn.com>
> Cc: filepro-list at lists.celestial.com
> Subject: Re: Getting Initiator's UserID for an External -v table process
>
> On 8/27/2016 6:28 PM, Stanley - stanlyn.com wrote:
>> Hi Ken,
>>
>> Reporting back...
>>
>> Executing:
>> system "/appl/fp/dreport sdgl_detail -f GlDetail -A -rz -u -v gldetail_select -h 'Printing GL Report'"& @id & "'"
>>
>> Gets me this error...
>>
>> *** A filePro Error Has Occurred ***
>> Command Line: /appl/fp/dreport sdgl_detail -f GlDetail -A -rz -u -v
>> gldetail_sel ect -h Printing GL Reportroot Bad argument on command
>> line.
> [...]
>
> You forgot something critical from my example:
>
>> system "/appl/fp/dreport ... -rz '" & @id & "'"
> [...]
> --
> Kenneth Brody
>
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the Filepro-list
mailing list