BookmarkSubscribeRSS Feed
Saugata
Obsidian | Level 7

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. 

3 REPLIES 3
Carlos_S
Calcite | Level 5

Maybe library assigment in the batch?

Tom
Super User Tom
Super User

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.

ChrisNZ
Tourmaline | Level 20

add

option no$syntaxcheck

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

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 Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 897 views
  • 1 like
  • 4 in conversation