Desktop productivity for business analysts and programmers

Find Note in Log

Reply
Super Contributor
Posts: 305

Find Note in Log

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

Attachment
Trusted Advisor
Posts: 1,203

Re: Find Note in Log

Are you concatenating a numeric variable with a character variable?

Super Contributor
Posts: 305

Re: Find Note in Log

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.

Grand Advisor
Posts: 17,379

Re: Find Note in Log

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.

Trusted Advisor
Posts: 1,214

Re: Find Note in Log

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.

Trusted Advisor
Posts: 1,214

Re: Find Note in Log

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

Community Manager
Posts: 2,697

Re: Find Note in Log

Quentin,

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

Chris

Trusted Advisor
Posts: 1,214

Re: Find Note in Log

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.

: )

SAS Super FREQ
Posts: 676

Re: Find Note in Log

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;
Ask a Question
Discussion stats
  • 8 replies
  • 318 views
  • 0 likes
  • 6 in conversation