Page 1 of 1
VDF2DAT not working with command file
Posted: Thu May 11, 2023 12:18 pm
by Chris_Rak
Hello,
I am using a command file (.cmd) to run a model. I have the folowing commands in my .cmd file.
SPECIAL>NOINTERACTION
SPECIAL>LOADMODEL|Model_VE7_20220622.mdl
SIMULATE>RUNNAME|test
MENU>RUN|O
MENU>VDF2DAT|test.vdf|test.dat|test.lst
MENU>EXIT
When executing with vensim text editor but also with other ways (windows Command Prompt, R), the command file generates the test_2.vdfx but not the test2.dat file neither the test_2.lst. I was wondering what might be the problem. I am using a DSS Version 9.2.2 x64.
Thank you very much for your help.
Chris
Re: VDF2DAT not working with command file
Posted: Thu May 11, 2023 1:04 pm
by Administrator
Try running it without NOINTERATION first and see if any errors crop up.
A quick look suggests
MENU>VDF2DAT|test.vdf|test.dat|test.lst
should be
MENU>VDF2DAT|test.vdfx|test.dat|test.lst
Re: VDF2DAT not working with command file
Posted: Thu May 11, 2023 2:08 pm
by Chris_Rak
I run the command file as advised without NOINTERATION and changed as MENU>VDF2DAT|test.vdfx|test.dat|test.lst and I get the error message:
Unable to open test.lst to read valid names
Chris
Re: VDF2DAT not working with command file
Posted: Tue May 16, 2023 8:22 am
by Chris_Rak
Hello,
I attempt to run the .cmd file in which I change the last commad as:
MENU>VDF2DAT|test.vdfx|test.dat
Vensim run the model but then crash. The test.vdfx is correctly generated and contains data. The test.dat is generated without any data inside.
Could someone tell me why Vensim crash and how to solve de data writting on .dat file issue?
Thank you very much for your help.
Chris
Re: VDF2DAT not working with command file
Posted: Wed May 17, 2023 6:28 am
by Administrator
Chris_Rak wrote: ↑Thu May 11, 2023 2:08 pm
I run the command file as advised without NOINTERATION and changed as MENU>VDF2DAT|test.vdfx|test.dat|test.lst and I get the error message:
Unable to open test.lst to read valid names
Chris
ok, that's one reason why it's failing. You are trying to export data and specifying a save list but not providing the list.
Re: VDF2DAT not working with command file
Posted: Wed May 17, 2023 6:41 am
by Administrator
Chris_Rak wrote: ↑Tue May 16, 2023 8:22 am
Hello,
I attempt to run the .cmd file in which I change the last commad as:
MENU>VDF2DAT|test.vdfx|test.dat
Vensim run the model but then crash. The test.vdfx is correctly generated and contains data. The test.dat is generated without any data inside.
Could someone tell me why Vensim crash and how to solve de data writting on .dat file issue?
Thank you very much for your help.
Chris
Can you upload the VDFX file?
Re: VDF2DAT not working with command file
Posted: Wed May 17, 2023 8:07 am
by Chris_Rak
Hello,
You can download the vdfx file with the following link.
https://filesender.renater.fr/?s=downlo ... 3774a3ffc5
Chris
Re: VDF2DAT not working with command file
Posted: Wed May 17, 2023 2:57 pm
by Administrator
This exports fine for me (see attached file).
Do you have permissions to write to the folder where you are trying to export?
Are you using DropBox?
Re: VDF2DAT not working with command file
Posted: Fri Jun 02, 2023 1:20 pm
by Chris_Rak
Hello,
I have administrator access and should be able to write to the folder.
Chris