BookmarkSubscribeRSS Feed
jen123
Fluorite | Level 6

Hello,

I ran this code/program and got an "variable is not an object" error.  What did I do wrong?  Thoughts?  Thanks!

a.sys_manual=b.sys_manual;

                    ____________

                    557

ERROR: DATA STEP Component Object failure.  Aborted during the COMPILATION phase.

ERROR 557-185: Variable a is not an object.

*******************************

   /* Update filter_by_decdecision_last */

data dcsn_sys_manual;

  

   update filter_by_decdecision (in=a)

           sys_manual_data (in=b);

   by id ;

   if a and b then

      do;

         a.sys_manual=b.sys_manual;

      end;

  

run;

1 REPLY 1
Reeza
Super User

It looks like you're mixing SQL notation and DATA step together.

You can't refer to a.sys_manual and b.sys_manual like that, you need to rename one of them in the update or handle it some other way. Are you sure you want an update, not a set or merge instead?

See here for more information:

http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001304308.htm

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 10630 views
  • 0 likes
  • 2 in conversation