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.

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

ChrisHemedinger
Community Manager

Quentin,

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

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
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.

: )

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;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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