BookmarkSubscribeRSS Feed
Loko
Barite | Level 11

Dear All,

When running some code within Enterprise Guide I get the note Numeric values have been converted to character values at the place given by...".

Unfortunately the code is not displayed in the log window and it is not easy to track it (as it is, for example, within Sas-Windows environment).

Also it seems that the log file keeps increasing but I don't know its physical location - how can i find it?

Please check also the attahed file with a piece of the log.

10x


Print.jpg
8 REPLIES 8
stat_sas
Ammonite | Level 13

Are you concatenating a numeric variable with a character variable?

Loko
Barite | Level 11

I am interested in finding out is Enterprise Guide may display something similar with Sas Windows. The code is so large and it is not so easy to

track the note under these circumstances.

Reeza
Super User

When I run code on EG my log still shows the code, plus a whole lot of EG added in additions.

It's more difficult but not impossible.

There's a project log and a task log, make sure you're looking at only the task log when debugging.

Quentin
Super User

Agree, I use the EG task log and it works well for me.  You can turn off some of the EG wrapper code.

I would check options NOTES, MPRINT if you are in macro land, etc.  Perhaps you could show more of the EG log you are seeing?  Maybe submit:

data a;

  set sashelp.class;

run;

proc print data=a;

run;

and show the log from that?

Another option is to use PROC PRINTTO to send the log to a file.  That way you definitely know where the log is, etc.  And you can choose whether  to review it outside of EG.  Or send it back to display in EG with a data _null_ step.

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
Quentin
Super User

Screeenshot of my log is attached.  WIthout the EG wrapper log lines.  Looks like just what you know and love from PC SAS aka DM SAS.

log.JPG

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
ChrisHemedinger
Community Manager

Quentin,

Looks like you even changed your colors to be old school.

Chris

SAS Innovate 2025: Call for Content! Submit your proposals before Sept 25. Accepted presenters get amazing perks to attend the conference!
Quentin
Super User

Yep, not only colored for old-school, but was very happy when I started with EG and realized how easy it was to color the log for my personal standard of old school (errors and warnings reversed):

Log2.JPG

And all my old school keyboard macros came in too, just exported the keyboard macro file from DM SAS, and imported into EG.

: )

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.
BrunoMueller
SAS Super FREQ

SAS Enterprise Guide displays the log of a SAS program. However maybe somewhere within the code the echoing of the source code has been switched off. Have a look at the following sample code, it shows how to switch off the echoing of the source code to the log. All you will get is the message about converting numeric to character but no source code.

options
 
nosource
;
data test;
  set sashelp.class;
  length newVar $ 24;
 
if sex = "M" then do;
    newVar = name !! age !! sex;
 
end;
 
else do;
    newVar = name !! sex;
 
end;
run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 8 replies
  • 1526 views
  • 0 likes
  • 6 in conversation