CSV File

Problems with syntax of GAMS
Post Reply
cicirabis
User
User
Posts: 1
Joined: 3 years ago

CSV File

Post by cicirabis »

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 201 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 202 times
this is my code
User avatar
bussieck
Moderator
Moderator
Posts: 1033
Joined: 7 years ago

Re: CSV File

Post by bussieck »

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