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

Several of my emails created from SAS using ODS have "<TD>" inserted in what appears to be random locations in the report table.  What am I missing here?

This is snipped from the code:

ods MARKUP body=EMLOUT3 (no_top_matter no_bottom_matter)      
           anchor='report'                                    
           tagset=CHTML                                       
           style=styles.minimal                               
;                                                             
proc report data=npcp nowindows;                              
  column STIME SYSTEM JOB SRVCLSS USID                        
  ;                                                           
  define STIME       /format=time8.   'Time';         
  define SYSTEM      / format=$4.      'System';       
  define JOB         / format=$8.      'Job';          
  define SRVCLSS     / format=$8.      'Service Class';
  define USID        / format=$8.      'User Id';      
run;                                                          
ods MARKUP close;                                             
run;                                                          

DATE: MAY...

7:15:51

CPU1

CIBFANT

NCAPAR01

ECPU1M01

7:23:59

CPU2

CITFAPS

NCAPAR01

STC22041

7:24:01

CPU2

CITPSC1

NCAPAR01

STC22041

8:29:03

CPU8

CITORDC

NCAPAR01

STC27458

8:37:11

CPU8

CITORDI

NCAPAR01

ECPU8M01

8:37:13

CPU8

CITORDM

NCAPAR01

ECPU8M01

8:39:14

CPU8

CITORDF

NCAPAR01

STC27458

8:39:15< TD>CPU8

CITORDJ

NCAPAR01

STC27458

20:08:31

CPU8

CITORDR

NCAPAR01

STC27492

1 ACCEPTED SOLUTION

Accepted Solutions
Chevell_sas
SAS Employee

In case this is getting truncated, try adding the RS=NONE option to the ODS statement.

View solution in original post

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

<TD> = Table Deliniator.  The should be resolving by the interpretor as the time to move over to the next column.  Its odd that you have it just once, is there anything in the data of 8:39:15 or CPU8 which may interfere with the encoding such as special characters?

tkight
Calcite | Level 5

Not that I know of.  The data looks like the rows above.  The code is running on z/OS 1.13 & SAS 9.1 and sending email to MS Outlook 14...

Chevell_sas
SAS Employee

In case this is getting truncated, try adding the RS=NONE option to the ODS statement.

Quentin
Super User

I take it EMLOUT3 is a filename using the email access method?  You may need to add lrecl= there.

Sometimes when debugging email problems, I find it easier to write the results to a file, so that I can review the .html in a text editor.  And try opening it in a browser.  That helps determine whether PROC REPORT is generating bad html, or if good html genereated by PROC REPORT is being truncated by outlook or elsewhere in the emailing process.

I've been saved by rs=none, as Chevell suggests.

BASUG is hosting free webinars Next up: Jane Eslinger presenting PROC REPORT and the ODS EXCEL destination on Mar 27 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 4 replies
  • 1091 views
  • 0 likes
  • 4 in conversation