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

I am implementing a LASR Table Swap out using this document as a guide: https://communities.sas.com/t5/tkb/articleprintpage/tkb-id/library/article-id/2371

 

I am successfully able to do the swap. However, when I need to add a column to the table being swapped, it updates the metadata but not the In-Memory table with the new column. As a result the swap is not successful because the original table still doesn't have the new column.

 

I am using IMSTAT for my swap. I don't see any option to add column. The Update statement I believe is for the rows.

 

Please advice.

PROC IMSTAT DATA = LASRLIB.&Original_Table;
   		WHERE 1=1;
	RUN;
   	DELETEROWS / PURGE;
	RUN;
   		TABLE LASRLIB.&Original_Table;
   		SET &table_name;
	RUN;
1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
Opal | Level 21

As I understand it, IMSTAT can add or delete rows, but not add columns from another source table, although you can create computed columns. To add columns I would delete the LASR table entirely then use a DATA step to do a complete table load.

View solution in original post

2 REPLIES 2
SASKiwi
Opal | Level 21

As I understand it, IMSTAT can add or delete rows, but not add columns from another source table, although you can create computed columns. To add columns I would delete the LASR table entirely then use a DATA step to do a complete table load.

nayyalas
Calcite | Level 5

Thank you very much, That is the approach I took.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

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