add new values to existing dataset

Reply
Contributor
Posts: 44

add new values to existing dataset

I have a sas code which creates SAS dataset  .this code is executed everyday..

Now i want to store these values, so when the code is executed tomorrow is should have todays and previous date values ...

please advise any ideas.


Super User
Super User
Posts: 6,851

Re: add new values to existing dataset

Not clear what you want to do.  Let's say you currently have a program that generates a dataset call LIBREF.TODAY.

data LIBREF.TODAY ;

  infile 'today.dat' ;

....

run;

Now what you probably want to do is continue to read today's data into a dataset and then use PROC APPEND to add it to the existing data.

proc append base=LIBREF.MASTER data=LIBREF.TODAY;

run;

Contributor
Posts: 44

Re: add new values to existing dataset

thanks Tom , it worked..

Ask a Question
Discussion stats
  • 2 replies
  • 188 views
  • 1 like
  • 2 in conversation