On Thu, 21 Sep 2017, Schaff, Frederik wrote:
>> unfortunately this works only for 2 but not 3 or more
records... And I
>> do not understand why.
>
> If you can send me the third-step files I'll try testing here.
You find the files attached.
Thanks, I'll take a look as soon as I can.
>> I tried Jack's idea again (see attached, it's a bit
long), the
>> problem remains that the long string "v" holding all the string
>> names cannot be printed. I found that 'printf "%s",v' does not
>> work but 'print v' does... That is the reason why the 'join
>> @cmd' does not hold the variable names.
>
> Hmm, this is quite odd. There's no such problem on Linux but I
> tried testing on Windows and I now see what you mean. There seems
> to be a string- length problem with [s]printf on Windows; I'll
> investigate.
>
> In the meantime there's a workaround: the script executes OK if
> you piece together the command for "join" like this:
>
> cmd = sprintf("%s ", fname)
> cmd ~= v
> cmd ~= sprintf("--ikey=%s --okey=%s", in_key, out_key)
Thanks a lot! This work-around does the job. And sorry for all the
inconvenience...
No inconvenience, we want gretl's commands and functions to work as
advertised on all platforms, and so we thank you for pointing out
problems so we can fix them. Both "append" and "join" should come
out of this in better shape.
Meanwhile, I think I'm closing in on the problem with Jack's "join"
script on Windows (not Jack's fault) and we should have a proper fix
available soon.
Allin