BookmarkSubscribeRSS Feed
Nasser_DRMCP
Lapis Lazuli | Level 10
ODS LISTING CLOSE;
ODS EXCEL FILE="$GRPFPU/REQUETES_PROD/TEST_NASSER2.xlsx" STYLE=HTMLBlue;
ods excel options(flow='tables'
                  row_heights='0,14,0,0,0,0,0'
                  sheet_name='Using flow and row_height');
  
proc report data=sashelp.baseball(obs=10)
STYLE(column)=[cellwidth=1cm ];
  column name team league division natbat nhits nruns nrbi;
  define _all_/style={tagattr='wrap:no' verticalalign=T just=l} ;

run;

ods excel close; 

Nasser_DRMCP_0-1671099148950.png

hello

Hello

this is the code I executed and this is the result.

the name "Allanson, Andy" has no return carriage inside the formula bar (as attended)

But by cliking inside the cell A2, a RC appears; maybe because the "wrap text button" is activate.

by desactivate it, the RC disapears, this is what I want. how to deal with that "issu" ?

thanks a lot in advance;

regards,

Nasser

3 REPLIES 3
Nasser_DRMCP
Lapis Lazuli | Level 10

hello

many thanks for your help.

I am sorry but I do not find the solution. certainly,  i do not understand your suggestions.

this "basic" code below works well. I mean there is no RC

ODS LISTING CLOSE;
ODS EXCEL FILE="$GRPFPU/REQUETES_PROD/TEST_NASSER2.xlsx" STYLE=HTMLBlue;
ods excel options(sheet_name='sheet'
			 	Absolute_Column_Width="10" 	);
  
proc report data=sashelp.baseball(obs=10) ;

  column name team league division natbat nhits  ;
 
 run;

ods excel close; 

Nasser_DRMCP_0-1672068822813.png

and then, by adding the column "nruns", a RC appears inside row 6 column A. I wonder why.

Nasser_DRMCP_1-1672068930174.png

thanks for your time.

regards

Nasser_DRMCP
Lapis Lazuli | Level 10

hello,

I copy/past the excel result in ultraedit and then I notice that a RC appears (but also quotes)

manu thanks for your hep

Nasser_DRMCP_0-1672136086863.png

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 845 views
  • 0 likes
  • 2 in conversation