VDF2DAT not working with command file

Use this forum to post Vensim related questions.
Post Reply
Chris_Rak
Junior Member
Posts: 5
Joined: Mon Dec 13, 2021 11:07 am
Vensim version: DSS

VDF2DAT not working with command file

Post 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
Administrator
Super Administrator
Posts: 4828
Joined: Wed Mar 05, 2003 3:10 am

Re: VDF2DAT not working with command file

Post 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
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
Chris_Rak
Junior Member
Posts: 5
Joined: Mon Dec 13, 2021 11:07 am
Vensim version: DSS

Re: VDF2DAT not working with command file

Post 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
Chris_Rak
Junior Member
Posts: 5
Joined: Mon Dec 13, 2021 11:07 am
Vensim version: DSS

Re: VDF2DAT not working with command file

Post 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
Administrator
Super Administrator
Posts: 4828
Joined: Wed Mar 05, 2003 3:10 am

Re: VDF2DAT not working with command file

Post 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.
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
Administrator
Super Administrator
Posts: 4828
Joined: Wed Mar 05, 2003 3:10 am

Re: VDF2DAT not working with command file

Post 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?
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
Chris_Rak
Junior Member
Posts: 5
Joined: Mon Dec 13, 2021 11:07 am
Vensim version: DSS

Re: VDF2DAT not working with command file

Post by Chris_Rak »

Hello,
You can download the vdfx file with the following link.
https://filesender.renater.fr/?s=downlo ... 3774a3ffc5
Chris
Administrator
Super Administrator
Posts: 4828
Joined: Wed Mar 05, 2003 3:10 am

Re: VDF2DAT not working with command file

Post 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?
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
Chris_Rak
Junior Member
Posts: 5
Joined: Mon Dec 13, 2021 11:07 am
Vensim version: DSS

Re: VDF2DAT not working with command file

Post by Chris_Rak »

Hello,
I have administrator access and should be able to write to the folder.
Chris
Post Reply