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
VDF2DAT not working with command file
-
- Super Administrator
- Posts: 4829
- Joined: Wed Mar 05, 2003 3:10 am
Re: VDF2DAT not working with command file
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
A quick look suggests
MENU>VDF2DAT|test.vdf|test.dat|test.lst
should be
MENU>VDF2DAT|test.vdfx|test.dat|test.lst
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: VDF2DAT not working with command file
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
Unable to open test.lst to read valid names
Chris
Re: VDF2DAT not working with command file
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
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
-
- Super Administrator
- Posts: 4829
- Joined: Wed Mar 05, 2003 3:10 am
Re: VDF2DAT not working with command file
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.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
-
- Super Administrator
- Posts: 4829
- Joined: Wed Mar 05, 2003 3:10 am
Re: VDF2DAT not working with command file
Can you upload the VDFX file?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
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: VDF2DAT not working with command file
Hello,
You can download the vdfx file with the following link.
https://filesender.renater.fr/?s=downlo ... 3774a3ffc5
Chris
You can download the vdfx file with the following link.
https://filesender.renater.fr/?s=downlo ... 3774a3ffc5
Chris
-
- Super Administrator
- Posts: 4829
- Joined: Wed Mar 05, 2003 3:10 am
Re: VDF2DAT not working with command file
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?
Do you have permissions to write to the folder where you are trying to export?
Are you using DropBox?
- Attachments
-
- test_1.zip
- (712.8 KiB) Downloaded 448 times
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: VDF2DAT not working with command file
Hello,
I have administrator access and should be able to write to the folder.
Chris
I have administrator access and should be able to write to the folder.
Chris