Why can't you post a log? Copy the log from SAS and paste here.
Or at least show the entire code.
But if naming is an issue then assigning "good" names is important.
Keep the data sets that you need to persist in that TEST library and then create the newer data as temporary input1 dataset in the work library.
Then:
Proc append base=test.input1
data= work.input1;
run;
Nothing in the test.input1 should go away without a specific statement by you that references test.input1.
Gil,
post your log. You seem to be mixing Unix and Windows syntax, so I'm not sure what is happening.
One, non-SAS, possibility is that a system utility is 'cleaning up' at night and deleting files from that directory.
Is "h:/reports" a shared directory? Could other users be deleting your files?
Since you do not demonstrate how you are "pulling" the 5 days of data that the "pull" is the issue, not the append. Note that if you append a dataset with no observations you are not going to have anything added.
I am going to suspect from your data set names your process may be overwriting data sets.
You may also want to explain why you need the "force" option. Many times I see that option it is an indication that a process is not in good control, sometimes over reliance on Proc Import and dealing with multiple definitions of variables because each set is different.
Why can't you post a log? Copy the log from SAS and paste here.
Or at least show the entire code.
But if naming is an issue then assigning "good" names is important.
Keep the data sets that you need to persist in that TEST library and then create the newer data as temporary input1 dataset in the work library.
Then:
Proc append base=test.input1
data= work.input1;
run;
Nothing in the test.input1 should go away without a specific statement by you that references test.input1.
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.
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.