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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.