Subscribe Bookmark RSS Feed

Name Unresolved: state in access or eva

tylerram93

Contributor

Joined:

Jul 20, 2017

Making a GUI using SAS and loading in data from .csv files.I found this code on one of the threads, but when I load my .csv file in it shoots me this error. Below is the code:

 

Cheers,


Tyler

 

Name Unresolved: state in access or evaluation of 'state' , state/*###*/

 

//Call CreateBivariate to do a bivariate (two variable) analysis\

status = List(0,0);

New Window("Custom Analysis",

H List Box(

V List Box(

Panel Box("Controls",

Text Box("Choose Analysis"),

choice = Check Box({"Distribution","Bivariate"},

current = choice << Get(1);

 

If( And( current, Not(state[1] ) ),

dt << Append(

dt = V List Box(

dt<< Distribution( Y(:Column(14)), X(:Column(16) ) )

)

);

status[1]=1; //mark as present

);

 

 

If( And( Not( current ), status[1] ),

dt << Delete;

status[1]=0;

);

 

current = choice << Get(2);

 

If( And( current, Not(state[1] ) ),

bv << Append(

bv1 = V List Box(

dt<< Bivariate( Y(:Column(14)), X(:Column(16)) ) )

)

);

status[2]=1; //mark as present

 

 

If( And( Not( current ), status[2] ),

bv1 << Delete;

status[2]=0;

);

)

)

),

dt = V List Box()

)

);

6 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

It appears that either there is a missing list called "State" or that it is a typo and "State" should actually be "Status"

Jim
tylerram93

Contributor

Joined:

Jul 20, 2017

Name Unresolved: bv in access or evaluation of 'bv' , bv/*###*/

Changed all the states to status, but it gave me this error?
txnelson

Super User

Joined:

Jun 22, 2012

I have to admit, that I didn't do a real indepth review of the code when I made my previous response.  I stand behind my comment about State and Status, however, when I look further into the code, it doesn't seem to make much sense.  Yes it does generate a display window, with a couple of selections that can be made, but it then attemps to run a distribution using a no existant X column, and pointing to a pointer to a V List Box.    I don't think this code ever worked.

 

What do you expect the code to have provided you? 

Jim
tylerram93

Contributor

Joined:

Jul 20, 2017

Sorry, this is my very first time using SAS. I am only experienced in Python and MATLAB. I want the code to just be able generate a distribution or bivariate analysis by clicking the box and using the .csv file I load in using:
 

dt = Open("C:\Users\Desktop\Data.csv");

I can do the bivariate analysis using two columns from the spreadsheet, but don't know how to incorporate it into a New Window()

 

Thanks for all the help!

 

Best,

 

Tyler

tylerram93

Contributor

Joined:

Jul 20, 2017

I actually got it to work. Figured out you named to add Eval( Y column) and Eval(X column).

Thanks again for the help!

Tyler
txnelson

Super User

Joined:

Jun 22, 2012

BTW, the software you are using is typically referred to as JMP software.  SAS typically refers to the larger and original software system from SAS Institute.

Jim