cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
Herrera5238
Level III

Close data table before stop() gives I/O problem

Hello,

 

I'm receiving this error

I/O problem.
Unable to open in ReadWrite mode.
The system cannot find the file specified.

Test.jmp

When I run a script like this.

dt = Open Database(
		connection,
		query,
		"Test"
	);
	
	
	list = :aColumn << Get Stored Values;
	

selection = Expr(

window = New Window ("Selection",
	<<Modal,
	PanelBox("Selection",
		rbox = RadioBox( list, value = rbox << Get Selected;),
		value = rbox << set(1);
		value = rbox << Get Selected;			
	);
);

If( window == {Button( -1 ) }, 
	 Close(dt);
	 Stop();
);
	
);

selection;

I'm not to sure what I'm doing wrong? 

 

Thank You


Daniel

1 ACCEPTED SOLUTION

Accepted Solutions
Herrera5238
Level III

Re: Close data table before stop() gives I/O problem

 

I just wanted to share that I found that if I add No Save to the close statement I do not get an I/O error.

So once I changed my close statement from 

Close(dt);

to 

Close(dt, No Save);

 I had no error.

Not sure as to why but this resolved the issue I was experiencing on this post but it did.

View solution in original post

1 REPLY 1
Herrera5238
Level III

Re: Close data table before stop() gives I/O problem

 

I just wanted to share that I found that if I add No Save to the close statement I do not get an I/O error.

So once I changed my close statement from 

Close(dt);

to 

Close(dt, No Save);

 I had no error.

Not sure as to why but this resolved the issue I was experiencing on this post but it did.