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

I am trying to execute this code in SAS EG:

%let check1 = C:\Datasets;
%let check2 = 2531-WB-31MAR21;

%include "%qtrim(&check1)\%qtrim(&check2)\setup_wb.sas";

and I get following Error:

Pavlo11_0-1617192649178.png

I have no problem with including setup_wb.sas. It works fine except this error

1 ACCEPTED SOLUTION

Accepted Solutions
2 REPLIES 2
Kurt_Bremser
Super User

This happens in the included code.

Please run that code again, with

options source2;

and post the log; use this button to copy/paste the log:

Bildschirmfoto 2020-04-07 um 08.32.59.jpg

Do NOT post the log in a picture!

Pavlo11
Fluorite | Level 6

Thank you. The problem was in this statement:

%if &batch_shared.= %then %do;

correct code is:

%if "&batch_shared."="" %then %do;

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1266 views
  • 2 likes
  • 2 in conversation