Dear Sven ,
Thanks for your suggestion. As per your instruction I add
the brackets where ever necessary and corrected in my script .
In gretl version 2023_b , the printf command ( with out brackets) runs and
gives the results.
printf"------------------------------------------------------------\n"
This command does not show any error and got the results.
What the problem faced is , In gretl version 2025b, for the same script I
got the error and halting.
gretl version 2025b
Current session: 2025-06-21 00:35
? clear
Parse error at unexpected token 'printf"'
Error executing script: halting
printf"------------------------------------------------------------\n"
This command shows an error and halting.
By adding the brackets , the script for 2025b runs without any error and
give the results
printf("------------------------------------------------------------\n")
string F_Bound_LS= sprintf("F_Bound_Calculated : %.4f\n
F_Lower_Bound_I[0]: %.4f\n\
F_Upper_Bound_I[1]: %.4f\n",F_Calc_Bound_LS,F_B_I0,F_B_I1)
print "@F_Bound_LS"
string t_Bound_LS= sprintf("t_Bound_Calculated : %.4f\n
t_Lower_Bound_I[0]: %.4f\n\
t_Upper_Bound_I[1]: %.4f\n",t_Calc_Bound_LS,t_B_I0,t_B_I1)
print "@t_Bound_LS"
Thanks with regards.
Dhanasekaran.
On Fri, Jun 20, 2025 at 10:30 PM Dhanasekaran Kuppusamy <drgkdphd(a)gmail.com>
wrote:
Thanks and I will correct my code accordingly.
On Fri, 20 Jun 2025 at 10:26 PM, Dhanasekaran Kuppusamy <
drgkdphd(a)gmail.com> wrote:
> Thanks for your suggestion and I correct it .
>
> On Fri, 20 Jun 2025 at 10:01 PM, Sven Schreiber <
> sven.schreiber(a)fu-berlin.de> wrote:
>
>> Am 20.06.2025 um 16:09 schrieb Dhanasekaran Kuppusamy:
>> > Hi Gretl users,
>> > The following code is not working in the new
>> > version of Gretl-2025b. But when I use the previous version of the
>> > Gretl it gives the results. What is the problem with the following
>> > code? What is the solution to this problem?
>> It would be useful to be more specific than to say "it's not
working".
>> However, ...
>> >
>> > string F_Bound_LS= sprintf"F_Bound_Calculated : %.4f\n
>> > F_Lower_Bound_I[0]: %.4f\n\
>> > F_Upper_Bound_I[1]: %.4f\n",F_Calc_Bound_LS, F_B_I0,F_B_I1)
>>
>> This line is missing at least an opening parenthesis after the 'sprintf'
>> function name. If it really worked before, you would have been very
>> lucky.
>>
>> cheers
>>
>> sven
>> _______________________________________________
>> Gretl-users mailing list -- gretl-users(a)gretlml.univpm.it
>> To unsubscribe send an email to gretl-users-leave(a)gretlml.univpm.it
>> Website:
>>
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/
>>
>