BookmarkSubscribeRSS Feed
JHE
Obsidian | Level 7 JHE
Obsidian | Level 7

My code:

 

ODS LISTING CLOSE;

ods excel file="/mnt/nfs/prod/Sched/OpsDeptData/Operations/Reports/Rework/&dtMonth._Rework.xlsx"

style=Print;

ods excel options(

sheet_name = '0100'

embedded_titles='yes'

EMBEDDED_FOOTNOTES= 'Yes'

sheet_interval="table"

orientation='landscape'

);

RUN;

 

PROC REPORT DATA=REWORKO.REWORK0100_SUMAMRY

STYLE(COLUMN)= [font_size=10 pt cellwidth=.14 in height=.2in]

style(header)=[font_size=11 pt height=.4in background=silver ]

style(summary)=[font_weight=bold];

/*define LOB / style(column)=[cellwidth=.6in];*/

define LOB/style(column)={tagattr='Format:Text:$4.' just=left cellwidth=0.6 in};

run;

ods _all_ close;

 

LOB =0100, but when ods to excel output , LOB = 0100,

 

what I should do can fix this.

 

 

 

 

3 REPLIES 3
PaigeMiller
Diamond | Level 26

I am unable to understand the problem description.

--
Paige Miller
JHE
Obsidian | Level 7 JHE
Obsidian | Level 7

I have

 

LOB = 0100, there is a leading Zero.

 

After ods excel using PROC REPORT,

 

define LOB/style(column)={tagattr='Format:@' just=center cellwidth=0.9 in};

 

the excel file , LOB has the value =100, missing the leading zero.

 

 

ballardw
Super User

You may want to edit your orginial post where it says:

LOB =0100, but when ods to excel output , LOB = 0100,

 

 

 

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
  • 3 replies
  • 2072 views
  • 0 likes
  • 3 in conversation