BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ybz12003
Rhodochrosite | Level 12

Hello:

 

I have the following error messages showing the log screen.  Is there a way to output the error message to the word document?  Only the error message, thanks.

 

4354 if_retinal_res_1_c21fce___colo $ 100.

ERROR: The variable named if_retinal_res_1_c21fce___microph contains more than 32 characters.

4355 if_retinal_res_1_c21fce___cat $

4356 if_retinal_res_1_c21fce___intra_calc $

4357 if_retinal_res_1_c21fce___chor_mac $ 100.

ERROR: The variable named if_retinal_res_1_c21fce___intra_calc contains more than 32 characters.

4358 if_retinal_res_1_c21fce___oth $ 100.

ERROR: The variable named if_retinal_res_1_c21fce___chor_mac contains more than 32 characters.

4359 if_retinal_res_1_c21fce___opt_nerv $

4360 if_retinal_res_1_c21fce___oth_opt $ 100.

ERROR: The variable named if_retinal_res_1_c21fce___opt_nerv contains more than 32 characters.

4361 if_retinal_res_sp_1_85b27b $ 100.

ERROR: The variable named if_retinal_res_1_c21fce___oth_opt contains more than 32 characters.

 

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

You could always use proc printto (see: http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p07x6qtx8z1608n1abo...) to reroute your log, and then process the file to an ods rtf file if, and only if, the line begins with the string "ERROR:"

 

Art, CEO, AnalystFinder.com

View solution in original post

2 REPLIES 2
art297
Opal | Level 21

You could always use proc printto (see: http://support.sas.com/documentation/cdl/en/basess/68381/HTML/default/viewer.htm#p07x6qtx8z1608n1abo...) to reroute your log, and then process the file to an ods rtf file if, and only if, the line begins with the string "ERROR:"

 

Art, CEO, AnalystFinder.com

Reeza
Super User

Probably best to use a log parser routine to compile the errors and then output them to a word document. 

Search lexjansen.com for samples of log parsers.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 967 views
  • 1 like
  • 3 in conversation