f



Opening SAS Logs with color coding (.log files)

Hi All,

I got a bunch of .log files saved --- and need to go through them.

the log is color coded when its generated (in interactive sas) --
however when opened later... it's all black.

is there a way to open the .log color coded either using sas itself or
using any other editor.

many thanks
0
1/9/2008 3:33:17 PM
comp.soft-sys.sas 142828 articles. 3 followers. Post Follow

2 Replies
675 Views

Similar Articles

[PageSpeed] 27

To add one more alternative, try Elvis from:

http://www.oview.co.uk/elvis

It's a Windows program for analysing SAS logs, including colour
coding, easy navigation to ERROR and WARNING lines, displaying the
hierarchy of macro calls, and more.  It's extremely small (just 250Kb)
and doesn't require any other supporting software like .NET etc.  You
can even download the zip and just run the elvis.exe program without
any installation, if you wish.

Chris.

On 9 Jan, 15:33, Master Chief Petty Officer John-117
<rifazraz...@gmail.com> wrote:
> Hi All,
>
> I got a bunch of .log files saved --- and need to go through them.
>
> the log is color coded when its generated (in interactive sas) --
> however when opened later... it's all black.
>
> is there a way to open the .log color coded either using sas itself or
> using any other editor.
>
> many thanks

0
chris7725 (143)
1/10/2008 4:02:17 PM
On Jan 10, 2:33 am, Master Chief Petty Officer John-117
<rifazraz...@gmail.com> wrote:

> is there a way to open the .log color coded either using
> sas itself or using any other editor.

If you are running on the Windows platform the Zeus editor
has configurable syntax highlighting that's very easy to
configure:

    http://www.zeusedit.com/forum/viewtopic.php?t=176

Jussi Jumppanen
Author: Zeus for Windows IDE
http://www.zeusedit.com


0
jussij (394)
1/16/2008 12:18:36 AM
Reply:

Similar Artilces:

Re: Opening SAS Logs with color coding (.log files)
SaviUtilities is a Windows-based front-end that will color-code everything, export to anything, quickly analyze logs. Check it out at: http://utilities.savian.net/ #8 You can see a screenshot here: http://www.sascommunity.org/wiki/SaviUtilities It is free. Alan Alan Churchill Savian www.savian.net -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Master Chief Petty Officer John-117 Sent: Wednesday, January 09, 2008 8:33 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Opening SAS Logs with color coding (.log files) Hi All, I got a bunch of .log files saved --- and need to go through them. the log is color coded when its generated (in interactive sas) -- however when opened later... it's all black. is there a way to open the .log color coded either using sas itself or using any other editor. many thanks thanks toby --- actually i need to go through the whole log (not just errors/warnings) to understand how a system is working (a bunch of macros) savian utility looks cool --- unfortunately cudnt install at office (requires the .net framework too) --- i am gonna give it a go at home. cheers Alan ...

Re: Opening SAS Logs with color coding (.log files) #10
Multiple SAS log files can be opened color-coded from the Notebook's Code Editor. I bet a free solution can't possibly be beat. :-) A newer version of Notebook Light (Free Version) is now available for download. If you have installed Notebook previously, just run your old copy and it will detect the presence of a newer version. This new version allows the user to open SAS files (*.sas, *.lst, *.log) and other files simultaneously from the File Explorer with the SHIFT or CTRL key pressed while selecting files or a range of files, and then bringing up the context menu with the right click of the mouse. Select "Open with Notebook" from the context menu. Also, this new version has an improved Code Indenter, and can now indent PROC TEMPLATE programs better! If you find some situations where the Code Indenter fails to function as desired, kindly report it to me at: audi@sas2themax.com. I appreciate your help. Regards, Audi http://sas2themax.com/free ...

Re: Opening SAS Logs with color coding (.log files) #11
Further experimentation show that the options no longer requires the $ sign, so he SAS command could be: "C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG "C:\Program Files\SAS\SAS 9.1\nls\en\SASV9.CFG" -RTFCOLOR -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Robin Templer Sent: Friday, 11 January 2008 8:31 p.m. To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Opening SAS Logs with color coding (.log files) To save the COLOUR information in your SAS logs, you need to have the following options set at SAS startup '-$RTFCOLOR' To check whether this option is set, execute the following code: Proc Option Internal ; run ; To set the option, start SAS with -$RTFCOLOR. For example "C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG "C:\Program Files\SAS\SAS 9.1\nls\en\SASV9.CFG" -$RTFCOLOR And ensure that you select the 'Save AS Type' when you save the sas log. No idea why this is not the default these days. Cheers Robin -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Randy Herbison Sent: Friday, 11 January 2008 6:27 a.m. To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Opening SAS Logs with color coding (.log files) I don't know why the colors are not retained. Someone else mentioned the same problem in a private e-mail. It works on my PC (Windows Xp Pro/SAS 9.1.3 Service Pack 4), but not on my co-worker's PC (also Windows Xp Pro/SAS 9...

Re: Opening SAS Logs with color coding (.log files) #9
I don't know why the colors are not retained. Someone else mentioned the same problem in a private e-mail. It works on my PC (Windows Xp Pro/SAS 9.1.3 Service Pack 4), but not on my co-worker's PC (also Windows Xp Pro/SAS 9.1.3 Service Pack 4). I'll write back if I find the answer (unless someone else does 1st). -Randy -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Master Chief Petty Officer John-117 Sent: Thursday, January 10, 2008 7:52 AM To: sas-l@uga.edu Subject: Re: Opening SAS Logs with color coding (.log files) hi randy, thanks for the mails... i've tried it on pc sas 9.1 --- the RTF file only has the log in black --- no color coding ?? please could you let me know why it doesnt work --- cos this RTF saving is the sensible solution for my scenario. thanks ...

Re: Opening SAS Logs with color coding (.log files) #12
To save the COLOUR information in your SAS logs, you need to have the following options set at SAS startup '-$RTFCOLOR' To check whether this option is set, execute the following code: Proc Option Internal ; run ; To set the option, start SAS with -$RTFCOLOR. For example "C:\Program Files\SAS\SAS 9.1\sas.exe" -CONFIG "C:\Program Files\SAS\SAS 9.1\nls\en\SASV9.CFG" -$RTFCOLOR And ensure that you select the 'Save AS Type' when you save the sas log. No idea why this is not the default these days. Cheers Robin -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Randy Herbison Sent: Friday, 11 January 2008 6:27 a.m. To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Opening SAS Logs with color coding (.log files) I don't know why the colors are not retained. Someone else mentioned the same problem in a private e-mail. It works on my PC (Windows Xp Pro/SAS 9.1.3 Service Pack 4), but not on my co-worker's PC (also Windows Xp Pro/SAS 9.1.3 Service Pack 4). I'll write back if I find the answer (unless someone else does 1st). -Randy -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Master Chief Petty Officer John-117 Sent: Thursday, January 10, 2008 7:52 AM To: sas-l@uga.edu Subject: Re: Opening SAS Logs with color coding (.log files) hi randy, thanks for the mails... i've tried it on pc sas 9.1 --- the RTF file only has...

Re: Opening SAS Logs with color coding (.log files) #3
This is one of the many aspects in which my Notebook program beats the SAS Enhanced Editor. Get it free at http://sas2themax.com/free. Audi ----- Original Message ----- From: "Master Chief Petty Officer John-117" <rifazrazeek@GMAIL.COM> To: <SAS-L@LISTSERV.UGA.EDU> Sent: Wednesday, January 09, 2008 10:33 AM Subject: Opening SAS Logs with color coding (.log files) > Hi All, > > I got a bunch of .log files saved --- and need to go through them. > > the log is color coded when its generated (in interactive sas) -- > however when opened later... it's all black. > > is there a way to open the .log color coded either using sas itself or > using any other editor. > > many thanks ...

Re: Opening SAS Logs with color coding (.log files) #8
OOPS, the DM statement below should have 2 DMS commands: DM 'log; WRTFSAVE "yourFilename"'; -----Original Message----- From: Randy Herbison Sent: Wednesday, January 09, 2008 6:05 PM To: 'Master Chief Petty Officer John-117'; SAS-L@LISTSERV.UGA.EDU Subject: RE: Opening SAS Logs with color coding (.log files) For future reference: If you work with SAS interactively and use a Windows version of SAS, you can save the log window as an RTF file with color coding. To do so, simply use the File pull-down menu to save the log window contents in RTF format. The command to do it is WRTFSAVE "yourFilename". In a SAS program, the command can be submitted via a DM statement: DM 'WRTFSAVE "yourFilename"'; -Randy -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Master Chief Petty Officer John-117 Sent: Wednesday, January 09, 2008 10:33 AM To: sas-l@uga.edu Subject: Opening SAS Logs with color coding (.log files) Hi All, I got a bunch of .log files saved --- and need to go through them. the log is color coded when its generated (in interactive sas) -- however when opened later... it's all black. is there a way to open the .log color coded either using sas itself or using any other editor. many thanks ...

Re: Opening SAS Logs with color coding (.log files) #4
Savian Utility requires the .NET framework 2.0 which most people should have (Windows XP SP2 required it). Have fun with it. Alan Alan Churchill Savian www.savian.net -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Sylar Sent: Wednesday, January 09, 2008 9:28 AM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Opening SAS Logs with color coding (.log files) thanks toby --- actually i need to go through the whole log (not just errors/warnings) to understand how a system is working (a bunch of macros) savian utility looks cool --- unfortunately cudnt install at office (requires the .net framework too) --- i am gonna give it a go at home. cheers Alan Textpad (MS Windows only) has great support for syntax highlighting. There are already syntax files (.syn files) for SAS command files. Creating a syntax file for the SAS log files shouldn't be too hard. Starting with the syntax file for Generic Logs and adapting from there might provide for a good bootstrap. On Wed, 9 Jan 2008 10:30:09 -0700, Alan Churchill <savian001@GMAIL.COM> wrote: > Savian Utility requires the .NET framework 2.0 which most people should have > (Windows XP SP2 required it). > > Have fun with it. > > Alan > > Alan Churchill > Savian > www.savian.net ...

Re: Opening SAS Logs with color coding (.log files) #7
For future reference: If you work with SAS interactively and use a Windows version of SAS, you can save the log window as an RTF file with color coding. To do so, simply use the File pull-down menu to save the log window contents in RTF format. The command to do it is WRTFSAVE "yourFilename". In a SAS program, the command can be submitted via a DM statement: DM 'WRTFSAVE "yourFilename"'; -Randy -----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu] On Behalf Of Master Chief Petty Officer John-117 Sent: Wednesday, January 09, 2008 10:33 AM To: sas-l@uga.edu Subject: Opening SAS Logs with color coding (.log files) Hi All, I got a bunch of .log files saved --- and need to go through them. the log is color coded when its generated (in interactive sas) -- however when opened later... it's all black. is there a way to open the .log color coded either using sas itself or using any other editor. many thanks hi randy, thanks for the mails... i've tried it on pc sas 9.1 --- the RTF file only has the log in black --- no color coding ?? please could you let me know why it doesnt work --- cos this RTF saving is the sensible solution for my scenario. thanks ...

Re: Opening SAS Logs with color coding (.log files) #2
Depending on why you are going through them ussually dictates what you need to do. If it was me and say I wanted to go through a bunch of log files and check for Errors and Warnings, which is one of the main reason one looks at the log files, all you need to do is pipe the names into a data step check for 'ERROR' and 'WARNING' in the logs. Write those either to a file and then it will let you know where to start looking at. Now depending on a bunch of factors like if these programs are independent of each other or not will dictate whether you need to look at each one of them or whether all the errors are stem from one a previous program. Toby Dunn "Don't bail. The best gold is at the bottom of barrels of crap." Randy Pausch "Be prepared. Luck is where preparation meets opportunity." Randy Pausch > Date: Wed, 9 Jan 2008 07:33:17 -0800 > From: rifazrazeek@GMAIL.COM > Subject: Opening SAS Logs with color coding (.log files) > To: SAS-L@LISTSERV.UGA.EDU > > Hi All, > > I got a bunch of .log files saved --- and need to go through them. > > the log is color coded when its generated (in interactive sas) -- > however when opened later... it's all black. > > is there a way to open the .log color coded either using sas itself or > using any other editor. > > many thanks _________________________________________________________________ Put your friends on the big screen with Windows Vis...

Re: Opening SAS Logs with color coding (.log files) #6
On Wed, 9 Jan 2008 07:33:17 -0800, Master Chief Petty Officer John-117 <rifazrazeek@GMAIL.COM> wrote: >Hi All, > >I got a bunch of .log files saved --- and need to go through them. > >the log is color coded when its generated (in interactive sas) -- >however when opened later... it's all black. > >is there a way to open the .log color coded either using sas itself or >using any other editor. > >many thanks Another way is to re-play the log files back into SAS log window: options nosource ; data _null_; infile '/your_file_path/junk.log'; file log; input; putlog _infile_; run; It will take on the color scheme of the current log window, such as red for ERROR, blue for NOTES. HTH, -TJ ...

Re: Opening SAS Logs with color coding (.log files) #5
Ditto for UltraEdit. I've got a really simple scheme for logs--it really just distinguishes between echoed code, NOTEs, INFO messages and ERRORs. Here it is: /L10"SASlog" Line Comment = WAR Block Comment On Alt = ERROR Nocase File Extensions = LOG log /Delimiters = ~!@^*()-+=|\/{}[]:;"'<> , .? /C1"Notes" NOTE INFO /C2"Errors" ERROR (No doubt I got that from someone on this list...) -----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Doug Morse Sent: Wednesday, January 09, 2008 12:57 PM To: SAS-L@LISTSERV.UGA.EDU Subject: Re: Opening SAS Logs with color coding (.log files) Textpad (MS Windows only) has great support for syntax highlighting. There are already syntax files (.syn files) for SAS command files. Creating a syntax file for the SAS log files shouldn't be too hard. Starting with the syntax file for Generic Logs and adapting from there might provide for a good bootstrap. On Wed, 9 Jan 2008 10:30:09 -0700, Alan Churchill <savian001@GMAIL.COM> wrote: > Savian Utility requires the .NET framework 2.0 which most people > should have (Windows XP SP2 required it). > > Have fun with it. > > Alan > > Alan Churchill > Savian > www.savian.net ...

Re: Unix SAS: How to save log file while in SAS session? #2
On Wed, 18 Aug 2004 12:18:03 -0500, Duck-Hye Yang <dyang@CHAPINHALL.ORG> wrote: >Hello, > >I am using SAS Unix Display manager. >I put together single small sas programming files in one giant sas programming file. >I need to save log and output files AFTER each single small programming file. >The problem is that I do not know how to save log and output while in SAS session. > >Below is the outline of what I'd like to do: > > >DM 'clear log'; >DM 'clear output'; >SAS 1 programming start here >end here >x 'file "SAS...

Re: SAS code to save result as a log file
> On Jan 8, 11:30 am, Ching <KCWo...@gmail.com> wrote: > > Hi everyone. > > Just wondering if anyone could teach me what is the sas code tosave > > the result from theoutputwindow as a log file? > > thanks heaps. > > have a great day. Hi Ching. The previous poster already gave you the printto code for saving your output. If you want to save the log to an external file, here is any easy way to do it. /* To print SAS log to an external file */ FILENAME templog "c:\sas\log.txt"; PROC PRINTTO LOG=templog; RUN; /* To stop printing to an external file */ PROC PRINTTO LOG='null'; RUN; Tim Timothy J. Lowe, Ph.D. Senior Scientist R. Stuart Dickson Institute for Health Studies Carolinas HealthCare System ----------------------------------------- This electronic message may contain information that is confidential and/or legally privileged. It is intended only for the use of the individual(s) and entity named as recipients in the message. If you are not an intended recipient of this message, please notify the sender immediately and delete the material from any computer. Do not deliver, distribute or copy this message, and do not disclose its contents or take any action in reliance on the information it contains. Thank you. ...

Re: PC SAS 9.1
> From: Jon Hayward > Is there a setting in PC SAS so that whichever directory I > save my .sas file to, SAS will automatically go there when I > want to save my .log and .lst files? > > Currently I must specify each location. While I am sure that > there is a reason for this, I am hoping that there might be a > setting to allow me to specify that I want SAS to remember my > current active location for the duration of that session... > So the next time I open SAS, I will perhaps save a different > .sas file to a different location and then SAS will know to >...

Re: PC SAS 9.1
Hi Jon, If you run SAS in batch mode the dir the .sas file is in will by default be the dir where the .log and .lst files will be left. Regards - Jim. -- Jim Groeneveld, Netherlands Statistician, SAS consultant home.hccnet.nl/jim.groeneveld My computer remains home while I will attend PhUSE 2006 in Dublin. On Tue, 12 Sep 2006 09:23:15 -0400, Jon Hayward <jhayward1@BABSON.EDU> wrote: >Hi - > >Is there a setting in PC SAS so that whichever directory I save my .sas >file to, SAS will automatically go there when I want to save my .log >and .lst files? > >Currently...

SAS log to output and to log window
Hi, I am using SAS 9.2 on Windows (not the Enterprise Guide) and would like to have the following feature: I want to save the log output to a text file, while also showing it in the log screen of the SAS application. Redirecting the log file works fine with proc printto, but then the log windows remains empty. Is there a trick to do this? Thanks Dornak Yes, when your session is done, do a "Save as" while selecting the LOG window. "Dornak" wrote in message news:f1654b61-2021-413d-a2bd-ff96625b9b83@3g2000vbx.googlegroups.com... Hi, I am using SA...

Opening non SAS files with BASE SAS ?
Is there a function that executes a non SAS file? I've written a macro that outputs a file with the extention SQL (EXE would also be helpful). *.SQL files are associated with SQL server on my computer so I'd like to make SAS execute this file so it triggers the SQL server program. Is this possible? Thank You, Aaron ...

Re: How to read a SAS log into a SAS dataset.
lazybone2k@GMAIL.COM wrote: > >Dear SAS-L listers, >This may be the millionth time somebody is asking this question " how to >read a SAS log into a SAS dataset?". I looked at previous posts and >gathered info from various SUGI papers and found a way to get the log and >read it. But i dont know for some reason its not working. Please help me. >I used a Proc printto procedure to print the log to a external file >location and try to read in the log and create a SAS dataset which will >contain info about Filename, Owner name, Group name, Elapsed time, CPU >t...

How to suppress the sas code in the log.
Hi Users, Is there any option to suppress my sas code in the log, it is fine if it displays NOTE, WARNING and ERROR messages. And also how to make my sas file as a hidden file so that no one can read or see my code but it has to get executed. Thanks in-advance for taking your valuable time to relpy. Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ ...

MS/ACCESS file convert to SAS file, but log said: invalid header
I use PC SAS import to read in a MS/ACCESS data and converted it into SAS data in PC. I transfered it to UNIX to run my code. But the log in said: "invalid header". Since PC SAS had no problem to run and output a PROC CONTENTS list, I am confussed by this error. Why a MS/ACCESS data converted by PC SAS can not be read in UNIX SAS? ...

About SAS log
Dear Listers; I am trying to run a program which have lots of output, always there is a window jump out to ask me where I should put the contents since SAS output window do not have enough space to display. And I always select the last option, to clear the previous one and leave space for the coming output. I am not sure if there is an automatic way to do this, since I only need th= e last output from the program. And I do not want to save it as a separate file. Thanks much for your suggestions and Merry Xmas! Best regards, Tony Sorry, I think the title should be "About SAS output&qu...

SAS Macros to Search and Report Errors and Warnings from your SAS Logs
Any suggestions or enhancements to this macro....Please let me know.... http://sastechies.blogspot.com/2010/10/sas-macros-to-search-and-report-errors.html ...

running a sas file within a sas file
Sorry to bug you all with such an easy one, but I havent had much luck with the usual help sources. I just want to run a sas program file within a sas program file. For example, in sas file 1 I want to set x equal to 2, then with file 2 invoked by file 1, I want to set y = 3. So sas file 1 looks like this... data data; x = 2; ***How do I invoke sas file 2 which sets y = 3 here???*** run; Thanks!!! On 9 jun, 09:20, zpe...@NATURE.BERKELEY.EDU (Zach Peery) wrote: > Sorry to bug you all with such an easy one, but I havent had much luck > with the usual help sources. > > I just want to run a sas program file within a sas program file. For > example, in sas file 1 I want to set x equal to 2, then with file 2 > invoked by file 1, I want to set y = 3. > > So sas file 1 looks like this... > > data data; > x = 2; > ***How do I invoke sas file 2 which sets y = 3 here???*** > run; > > Thanks!!! Here is a way. sas file 2 saved as your_file_location\inclfile2.sas: y = 3; sas file 1: data test; x = 2; %include 'your_file_location\inclfile2.sas'; put (_all_ ) (=); run; One could think macro, which could operate in much the same way, but can be more flexible. %macro setvar(v=y); &v = 3; %mend setvar; sas file 1: data test; x = 2; %setvar(v=z); put (_all_ ) (=); run; There are other ways as well. My question would be: why would you want this and in this way? Regards, Joep ...

Web resources about - Opening SAS Logs with color coding (.log files) - comp.soft-sys.sas

Opening of the Liverpool and Manchester Railway - Wikipedia, the free encyclopedia
The opening of the Liverpool and Manchester Railway ( L&M ) took place on 15 September 1830. Work on the L&M began in the 1820s, to connect the ...

Facebook Weekly Highlights Brings You The NFL’s Opening Week, More U.S. Open Action
Facebook Weekly Highlights features photos posted to the social network by celebrities and athletes. This week’s edition featured the photo to ...

DAIGO Performs Opening Theme for Kamiwaza Wanda Anime
New Takara Tomy, TBS franchise anime premieres April 16 on 28 channels

The Helio Sequence touring, opening for Joy Formidable and Death Cab for Cutie, playing Baby's All Right ...
The Helio Sequence will be touring this spring, and the first section of those dates will be supporting The Joy Formidable. They'll then be out ...

We just had a look inside Tesla's first sales and service center in Brooklyn, New York, ahead of its ...
Tesla Motors ' new sales and service center in the Red Hook neighborhood of Brooklyn, New York , is opening this Friday to the public. Customers ...

Thursday: Unemployment Claims, Philly Fed Mfg Survey, Job Openings
... Also at 8:30 AM, The Philly Fed manufacturing survey for March. The consensus is for a reading of -1.4, up from -2.8. • At 10:00 AM, Job Openings ...

Gray gets 1st start, opening day nod; A's beat White Sox
GLENDALE, Ariz. (AP) — Sonny Gray pitched three innings in his first start of the spring and then was named Oakland's opening day starter after ...

Movie Theater Owners Brush Off Idea Of $50 Opening-Day Home Video Releases
... with projectionists and patrons videotaping a film in theaters that they provide security with night-vision goggles for premieres and opening ...

Rihanna ANTI Tour Opening Night
She flew across an entire stadium&nbsp;on a bridge. In your face, Aladdin!&nbsp;​

Apple is opening a new store in one of China’s most desirable cities
Apple’s Chinese retail store will continue this month with the opening of a brand new Apple Store in the port city of Dalian. The store will ...

Resources last updated: 3/17/2016 2:11:22 PM