Help using Base SAS procedures

Set SAS tableset with # in table name

Reply
Regular Contributor
Posts: 186

Set SAS tableset with # in table name

Hi,

Quick question. I would like to use the set statement on a table with a '#' in the table name.

data mylib.mytest;

SET mylib.mytable#022

;run;

#022 gets colored in green as if I would need to do something to make sure SAS recognize this has being the name of a table.

How do I fix this?

Thank you for your help and time.

Regular Contributor
Posts: 186

Re: Set SAS tableset with # in table name

This does the trick :

data mylib.mytest;

SET mylib.'mytable#022'n

;run;

Thank you!

Ask a Question
Discussion stats
  • 1 reply
  • 109 views
  • 1 like
  • 1 in conversation