CSV File

Problems with syntax of GAMS
Post Reply
cicirabis
User
User
Posts: 1
Joined: 4 days ago

CSV File

Post by cicirabis » 4 days ago

Hello there,
I want import a csv file into gams. I tried all the things on internet. But I could not get success.

My csv file include 860 rows and just 2 columns with index.
Also my code is very short. I only have difficulties in this part.
rabis.csv
(21.06 KiB) Downloaded 5 times
this is my file, I also tried is as firstly blank character.
What you suggest me?
Thank you very much
rabiscode.gms
(565 Bytes) Downloaded 7 times
this is my code

User avatar
bussieck
Moderator
Moderator
Posts: 461
Joined: 3 years ago

Re: CSV File

Post by bussieck » 4 days ago

Just remove the ";" from the csv file name: "$include rabis.csv", as in all examples in the GAMS docs (see, e.g. https://www.gams.com/latest/docs/UG_Dat ... search=csv). There are many other errors in your model.

Good luck,
-Michael

Post Reply