BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DavidCaliman
Calcite | Level 5

I need abort a job if the source table of this job is empty or does not exist.

Does anyone know how I can do this in DI Studio 4.6 within a job?

1 ACCEPTED SOLUTION

Accepted Solutions
LinusH
Tourmaline | Level 20

Just want to add, status handling is performed on the result of a transformation, not on a source table as such. Probably you can use it anyway when designing your exceptions, just bare this in mind.

An exception is if your table you want to check is a look-up table in the Look-up transform, this transformation can explicitly check the status of the source table.

Data never sleeps

View solution in original post

3 REPLIES 3
DaveR_SAS
SAS Employee

The topic in the 4.6 user guide describes a general approach: SAS(R) Data Integration Studio 4.6: User's Guide

I think you would specify the "Table Does not Exist" condition: SAS(R) Data Integration Studio 4.6: User's Guide

LinusH
Tourmaline | Level 20

Just want to add, status handling is performed on the result of a transformation, not on a source table as such. Probably you can use it anyway when designing your exceptions, just bare this in mind.

An exception is if your table you want to check is a look-up table in the Look-up transform, this transformation can explicitly check the status of the source table.

Data never sleeps
DavidCaliman
Calcite | Level 5

I solved the problem by using the lookup Exception.

Thank you very much.

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
  • 3 replies
  • 1738 views
  • 3 likes
  • 3 in conversation