[Q] Running GAMS from window script

Dear all,

I have a quick question on the running GAMS from Window scripts.

I created a window batch file:

“C:\GAMS\win64\24.1\gams.exe” gams “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304.gms” s=base

Then, I ran the batch file.
I got the following error message:

=====
C:\projects\peru project\HPGP_GAMS_CODE\cge model static>“C:\GAMS\win64\24.1\gam
s.exe” gams “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304
.gms”
gams: **** Error: Parameter error(s)
: Reading parameter(s) from “pchar”
: *** Error Option keyword expected, saw “”"
: Finished reading from “pchar”

=====

Do you have any idea what exactly means the Reading parameter(s) from “pchar”?
I don’t have any variable called “pchar” in the gams file and gdx file.

I am a newbie in GAMS.

Any suggestions are welcomed!!!

Best,
Soonho


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hi

I am not sure what “gams” between the two expressions is supposed to do, but this should work fine if the paths are correct (adding “gams” produces your error).

“C:\GAMS\win64\24.1\gams.exe” “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304.gms” s=base

Cheers

Renger



From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Soonho Kim
Sent: Dienstag, 31. März 2015 23:38
To: gamsworld@googlegroups.com
Subject: [Q] Running GAMS from window script



Dear all,



I have a quick question on the running GAMS from Window scripts.



I created a window batch file:



“C:\GAMS\win64\24.1\gams.exe” gams “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304.gms” s=base



Then, I ran the batch file.

I got the following error message:


\

C:\projects\peru project\HPGP_GAMS_CODE\cge model static>"C:\GAMS\win64\24.1\gam

s.exe" gams "C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304

.gms"

gams: **** Error: Parameter error(s)

: Reading parameter(s) from “pchar”

: *** Error Option keyword expected, saw “”"

: Finished reading from “pchar”


\




Do you have any idea what exactly means the Reading parameter(s) from “pchar”?

I don’t have any variable called “pchar” in the gams file and gdx file.



I am a newbie in GAMS.



Any suggestions are welcomed!!!



Best,

Soonho


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.

Hello Soonho,

Where you able to solve the parameter error problem. If yes, kindly share how you solved it with me as I am currently getting similar error.

Thanks.
Tunde.

On Wednesday, April 1, 2015 at 3:12:23 AM UTC-6, Soonho Kim wrote:

Dear all,

I have a quick question on the running GAMS from Window scripts.

I created a window batch file:

“C:\GAMS\win64\24.1\gams.exe” gams “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304.gms” s=base

Then, I ran the batch file.
I got the following error message:

=====
C:\projects\peru project\HPGP_GAMS_CODE\cge model static>“C:\GAMS\win64\24.1\gam
s.exe” gams “C:\projects\peru project\HPGP_GAMS_CODE\cge model static\1IFPRI-304
.gms”
gams: **** Error: Parameter error(s)
: Reading parameter(s) from “pchar”
: *** Error Option keyword expected, saw “”"
: Finished reading from “pchar”

=====

Do you have any idea what exactly means the Reading parameter(s) from “pchar”?
I don’t have any variable called “pchar” in the gams file and gdx file.

I am a newbie in GAMS.

Any suggestions are welcomed!!!

Best,
Soonho


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.