sql - Can I modify an existing SAS dataset without creating a temporary file? -


In addition to the statement

modify statement, there are other ways to modify the contents of the SAS dataset (i.e. Changing values, or adding or removing rows or columns) that does not include no to create a temporary file in work and then replace the entire original file?

Related questions: If I have a proc sql with a create table and many statements statement, all targeting In the same table, SAS will overwrite the output table several times at the end, or is it smart enough to write all in one pass? Let's say I'm not connected to any other DBMS.

Since 2 people already post it, this is not a valid answer:

  data lib.dsn; Set lib.dsn; / * Insert logic here * / /;   

If you do this, then the SAS creates a temporary file and after the completion of the data changes the original lib.dsn. If you interfere with this kind of data phase, there will be an error in the log, but the original dataset will remain unchanged.

Update lines with PROC SQL; UPDATE

Delete with PROC SQL; DELETE

Add PROC APPEND or with PROC SQL; INSERT

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -