BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi all!

I have a SAS file created
Thanks!
4 REPLIES 4
darrylovia
Quartz | Level 8
Dear SASNewBee

Double check your macro code spefically

%macro trans( id, gid,sj, tdata);
data _temp_cs;
set &t_data;
run;

should the set &t_data be &tdata ?
Doc_Duke
Rhodochrosite | Level 12
You need to turn on the options that Scott (SBB) recommends, so you (and we) can see what is going on. Without more detail of the log, it is a stab in the dark.

However, to stab in the dark, I'd guess that your connection to the database failed and thus &cnt is never created. The password warning is my key.
deleted_user
Not applicable
Sorry but I dont see any posts from SBB. Which options do I need to turn on?
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
You really need to share *ALL* of your SAS code, not just sections. There is a macro you are invoking which is not revealed at all.

The OPTIONS setting mentioned - you may want to consider reviewing the DOC about diagnosing SAS programs is:

OPTIONS SOURCE SOURCE2 MACROGEN SYMBOLGEN MPRINT;

And there are times when you will need to add MLOGIC as well.

Scott Barry
SBBWorks, Inc.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1240 views
  • 0 likes
  • 4 in conversation