Help using Base SAS procedures

If Datafile is missing on server skip steps

Reply
Occasional Contributor
Posts: 6

If Datafile is missing on server skip steps

Hello, 

 

I am running code which first imports data using a data step. 

 

the problem that Im finding that if that datafile is missing, the whole program keeps freezing. 

 

WHat I would like to do is to skip certian steps if the datafile is missing? 

 

Can anyone help me out?

 

For reference, I am running on SAS EG 7.1

 

Thanks,

Respected Advisor
Posts: 3,124

Re: If Datafile is missing on server skip steps

[ Edited ]

Depending your preference, look for functions FEXIST or FILEEXIST. Depend on your code steam, You may need to implement MACRO langugage to branch out your SAS code based on the outcome of these two functions.

Ask a Question
Discussion stats
  • 1 reply
  • 185 views
  • 0 likes
  • 2 in conversation