BookmarkSubscribeRSS Feed
elbart
Fluorite | Level 6

Hello community! 

The problem is about rewriting contents of a table in SAS Data Integration Studio. 

We have a Job scheduled to run every day.

Every morning the table contents is almost empty and contains rows that has nothing to do with the right one. Than if I am running the job manually it works perfectly fine.

I have already tried to redeploy scheduling and make a reverse analysis to understand where this data comes from but it didn’t help.

 

Any suggestions will be very welcome!

 

P.S. Didn't find a branch of a forum where can I write questions about SAS DI and have chosen the most close to my mind.

 

4 REPLIES 4
LinusH
Tourmaline | Level 20
It may not be obvious but the Data Management forum is targeted for DI Studio questions.

Ok, what about the timestamp for the created table, does it match your scheduled job?
If not, it sounds like another job is writing to the same table. If you are lucky, it's the same object on Metadata and you will be able to find any other related job through the Analyze routine.

Otherwise you need to do some detective work. Compare log with programs and jobs. When the table was created / modified and by which user.
To mimic the batch, open the deployed job in DMS SAS/EG and use the batch user. By executing the code interactively you are able to monitor it in more detail.

Good luck!
Data never sleeps
ChrisHemedinger
Community Manager
I moved this thread to the Data Management board
- Chris
It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Kurt_Bremser
Super User

First of all, if your dataset should only be written from a maintained SAS batch job, I would make sure that only the user that runs the batch job has write access to the dataset (and library, if possible).

Then you need to take a careful look at the damaged dataset before it is overwritten. If possible, use the operating system's move command to create a backup for later inspection that retains the properties.

Look at the time of last modification, and see if you have a job log from the same time. An incorrectly specified job from a completely different context might be the culprit.

elbart
Fluorite | Level 6

Well, the problem was solved by deleting all the suspicious jobs and rebuilding them again. 

Thanks for everyone who replied. 

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
  • 4 replies
  • 982 views
  • 0 likes
  • 4 in conversation