BookmarkSubscribeRSS Feed
Albert0
Quartz | Level 8
Hi All,

I would like to ask if there is a code that could delete lasr table that has special characters into it or table names that started with a special character or number?

Sample: (2) Table Name
2015_Report

I have a housekeep program that deletes tables that are no longer in use but I have an error when these tables are in que. I don't have control in writing the tablenames since different departments are dumping their tables in the server.


Thanks

-Albert0
3 REPLIES 3
saspert
Pyrite | Level 9

Try moving your post to the correct community. this is general programming stuff. 

ChrisNZ
Tourmaline | Level 20

What does the housekeeping program do?

Albert0
Quartz | Level 8

Hi ChrisNZ,

 

Basically, the housekeep program that I made is to delete all LASR tables that are not used anymore and backup all the LASR table by creating a SAS datasets counterpart of the table.

 

BTW, I've found a solution to call and delete the table in my sas code by adding string literal n to the table name or macro. E.g. Summary Table 1 => 'Summary Table 1'n.

 

Albert0

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 886 views
  • 0 likes
  • 3 in conversation