DATA Step, Macro, Functions and more

Getting warning while setting a SAS dataset in batch

Reply
Contributor
Posts: 35

Getting warning while setting a SAS dataset in batch

Hi All,

I am trying a very simple SAS data step:

Data Tmplib.X;

     Set Master.Response_Data;

Run;

Tmplib and Master are SAS libraries. Whenever I run this code in Batch I am getting the below message:

The data set Tmplib.X has 0 observations and 7 variables.

WARNING: Data set Tmplib.X was not replaced because this step was stopped.

But when I execute this same data step from a SAS session, I am getting correct result without any problem.

What is the meaning of Data set Tmplib.X was not replaced because this step was stopped ? (There were no errors present in the Log)

Can anybody please help. 

New Contributor
Posts: 2

Re: Getting warning while setting a SAS dataset in batch

Maybe library assigment in the batch?

Super User
Super User
Posts: 7,054

Re: Getting warning while setting a SAS dataset in batch

Are your batch jobs running using the same user as the interactive ones?  If they are different the the file permissions might not allow the batch job to read the file.

PROC Star
Posts: 1,760

Re: Getting warning while setting a SAS dataset in batch

add

option no$syntaxcheck

at the start of the batch job see if it makes a difference.

Ask a Question
Discussion stats
  • 3 replies
  • 245 views
  • 1 like
  • 4 in conversation