Hi,
My question is in daily code it will first execute the back dated data from the source and then execute the remaining code.
For example when we run on 23 date it will first execute 22 data and then the remaining data, when we run on 24 it will first execute 23 data and then the remaining data.
EX : Yesterday date is set at 11am automatically and day before yesterday is set at 2am manually and once completed.
actually my question is that the code should have only one instance running.
So, what is the logic?
Rerun for recon issues logic?
Are you asking about scheduling a process to run and checking if it ran successfully?
It's not clear what you're asking for here.
Do you have daily datasets or a acummulated data.
Assuming the last is true and that the data contains a date or a timestamp variable
then calculate the "yesterday" day and run with where date variable is GE "yesterday".
Describe what you have, how you would like to work and how things work currently and what the problem is that you need to solve.
It is still not clear what the code is doing.
Is it updating existing data? adding new data?
What is the ID variables?
Can you post your code and sample of your data?
What issues do you have ?
The logic may differ according to your answers.
To clearly formulate what you have, what you need and what problem you have to solve will not only help us to understand you and provide advise, it will also help you to take a structured approach to problem analysis and resolution.
@Devyani There is not a character limit here. Please post more details if you want any help otherwise please contact SAS Tech Support.
Details on how to ask a good question are here:
and here:
https://stackoverflow.com/help/how-to-ask
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.