BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
iyerdeepa82
Calcite | Level 5

Hi,

 

We have SAS CI Studio, version 6.4. I have a datagrid, which has multiple columns. I need just 10 columns out of that, hence I want to do a TABLESEECT with just columns of interest.

 

When I try specifying the column names in TABLESELECT , I get a SAS exception.

 

Syntax Used:

TABLESELECT(<<identifiers.Party Details>>,
'<<identifiers.Party Details>>.name,  '<<identifiers.Party Details>>.name EQ <<identifiers.Name>>')

 

Please advise, what are the other options?

 

Thanks,

Deepa

1 ACCEPTED SOLUTION

Accepted Solutions
JamesAnderson
SAS Employee

Hi Deepa,

 

It looks like the issue is with the ColumnClause part of the TABLESELECT function. 

 

The documentation for TABLESELECT says:

 

columnClause

 

specifies the columns that appear in the new data grid variable. Use an asterisk (*) to specify all of the columns in the data grid. Use a list of column names that are separated by semicolons (;) to designate specific columns. These column names must be specified as strings and must be the actual column names in the data grid. You cannot use identifiers to specify column names.

.......

I also think you are missing a single apostrophe after your column clause.

 

Regards

James

 

View solution in original post

2 REPLIES 2
JamesAnderson
SAS Employee

Hi Deepa,

 

It looks like the issue is with the ColumnClause part of the TABLESELECT function. 

 

The documentation for TABLESELECT says:

 

columnClause

 

specifies the columns that appear in the new data grid variable. Use an asterisk (*) to specify all of the columns in the data grid. Use a list of column names that are separated by semicolons (;) to designate specific columns. These column names must be specified as strings and must be the actual column names in the data grid. You cannot use identifiers to specify column names.

.......

I also think you are missing a single apostrophe after your column clause.

 

Regards

James

 

iyerdeepa82
Calcite | Level 5

Thank you very much James for your prompt response. When I got rid of identifiers and used the column names directly, it started working !

 

Thanks,

Deepa

How to improve email deliverability

SAS' Peter Ansbacher shows you how to use the dashboard in SAS Customer Intelligence 360 for better results.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1397 views
  • 0 likes
  • 2 in conversation