cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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.

Recommended Articles