Page 1 of 1

Command line use error message "Could not copy GAMS parameter file "

Posted: Thu Jul 27, 2017 2:51 pm
by LaurentFranckx
Dear all

When I run GAMS from the command line, I get the following error message:

C:\Program Files (x86)\GAMS22.6>gams C:\Usr\gams\PLANET\pttv_2015\Z_planet_pttv2015
*** Could not copy GAMS parameter file C:\Program Files (x86)\GAMS22.6\gmsprm95.txt -> 225a\gmsprm95.scr

The initial idea was that GAMS was trying to store work files to a folder for which I have no writing permissions.

I have then tried the procedure described in: https://www.gams.com/latest/docs/usergu ... rocdir.htm, and the results was the same:

C:\Program Files (x86)\GAMS22.6>gams C:\Usr\gams\PLANET\pttv_2015\Z_planet_pttv2015 Procdir=C:\Usr\gams\exercises\workfiles
*** Could not copy GAMS parameter file C:\Program Files (x86)\GAMS22.6\gmsprm95.txt -> 225a\gmsprm95.scr

Please advice. I work on a Windows10 PC.

Re: Command line use error message "Could not copy GAMS parameter file "

Posted: Fri Jul 28, 2017 2:53 pm
by LaurentFranckx
Problem solved. Apparently, the error was launching GAMS from its installation folder. The correct procedure is to add the installation folder to the PATH variable, and to call GAMS from another folder, for instance the folder containing your GAMS code.

Re: Command line use error message "Could not copy GAMS parameter file "

Posted: Mon Oct 16, 2017 4:15 am
by okaradeniz
@LaurentFranckx
Hi, I 'm new starter. I have the same issue. However i could not fix it. Could you explain elaborately?

Or anybody helps me?

Thanks in advance.

Re: Command line use error message "Could not copy GAMS parameter file "

Posted: Mon Oct 16, 2017 10:14 am
by LaurentFranckx
@okaradeniz
I applied the second solution.
So I put all my gms files in one folder, "mymodel". Before calling an individual gms file, I would change directories:
cd C:\mymodel
And then call my gms file, for instance:
gams 01_macro_part1.gms
Can you check whether this works?

Re: Command line use error message "Could not copy GAMS parameter file "

Posted: Mon Oct 16, 2017 6:33 pm
by okaradeniz
@LaurentFranckx Thank you very much! It compiles now :)

Re: Command line use error message "Could not copy GAMS parameter file Hi, I am new at the GAMS

Posted: Sat Aug 25, 2018 4:47 pm
by Gams_271
Hi, I am new at the GAMS. I can’t fix it the same problem. I add the installation file to path variable but it did not work. Please help me

Re: Command line use error message "Could not copy GAMS parameter file "

Posted: Mon Aug 27, 2018 4:46 pm
by LaurentFranckx
@Gams_271
Have you copied the "installation file" or "installation folder" to your PATH variable?