[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1258
  • Last Modified:

How to stop the execution in SAS program without closing the application

Hi,

I have a SAS-program where i do a test if a certain file exists.
How to stop the execution of the SAS program when the file does not exist i want only to stop execution without closing the application.

Tx
0
sonmic
Asked:
sonmic
  • 2
1 Solution
 
Aloysius LowCommented:
writing a condition to only execute if the file is found?

i'm not sure what you are asking exactly - the SAS program will end one way or another without you having to close the application. can you please be more specific?
0
 
sonmicAuthor Commented:
Hi,
I have for example 100 data/proc steps. In the first data step i read about 25,000,000 records. When the output is 0 records, then I want stop the processing without closing the application.
0
 
Aloysius LowCommented:
i would suggest writing macros in that case and have a flag to keep track of the execution process.

after each data / proc step, check the output data set observations and update the flag accordingly. next, have an if condition which will check the flag indicates if the processing should proceed.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now