BookmarkSubscribeRSS Feed
Devyani
Calcite | Level 5

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?

9 REPLIES 9
Reeza
Super User

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.

Shmuel
Garnet | Level 18

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".

Patrick
Opal | Level 21

@Devyani

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.

Devyani
Calcite | Level 5
Actually my yesterday data is scheduled at 11am automatically which takes atleast 3hrs of time to execute
I manually scheduled day before yesterday data at 2am because there is an issue with its data
once completed and when repeat or reconciliation
rerun for recon issues
both the dates data hit the same table
code should only have one instance running
can anyone please let me know the logic here?
Shmuel
Garnet | Level 18

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.

Devyani
Calcite | Level 5
It is updating existing data
only one instance should be running
Patrick
Opal | Level 21

@Devyani

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
Calcite | Level 5
18 hours ago


It is updating existing data
only one instance should be running
Reeza
Super User

@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:

https://communities.sas.com/t5/SAS-Communities-Library/How-to-ask-a-question-in-SAS-Analytics-U-Comm...

 

and here:

https://stackoverflow.com/help/how-to-ask

 

 

 

 

 

sas-innovate-2024.png

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.

 

Register now!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 9 replies
  • 1115 views
  • 0 likes
  • 4 in conversation