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

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

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.

Review SAS CI360 now.png

 

Want to review SAS CI360? G2 is offering a gift card or charitable donation for each accepted review. Use this link to opt out of receiving anything of value for your review.

 

 

 

 

SAS Customer Intelligence 360

Get started with CI 360

Review CI 360 Release Notes

Open a Technical Support case

Suggest software enhancements

Listen to the Reimagine Marketing podcast

Assess your marketing efforts with a free tool

 

Training Resources

SAS Customer Intelligence Learning Subscription (login required)

Access free tutorials

Refer to documentation

Latest hot fixes

Compatibility notice re: SAS 9.4M8 (TS1M8) or later

 

 

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