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

It's taken me a while to figure out what was going on, but I have proc report code that was generating tons of messages that said

WARNING: Illegal argument to function

Turns out I was using leading_zero='yes' option on my msoffice2k_x tagset and it generates the warning when a variable has a missing value.  Perhaps not for all variables but at least presumably for those which could have a leading zero.  Consider the code.

data temp ;

input Var1 $2. ;

datalines ;

00

01

00

 

00

;

run ;

ods tagsets.msoffice2k_x file="Temp.xls" style = sasweb

options(leading_zero="yes") ;

proc report data=temp nowd missing ;

columns var1 ;

run ;

ods _all_ close ;

It generates one such message.  However when I ran it on the real code I was using it generated enough messages that I had to break out of it.  Any way around it?

I'm running SAS 9.3 on a Windows 64 server. 

thanks,

Steve

1 ACCEPTED SOLUTION

Accepted Solutions
Chevell_sas
SAS Employee

Steve, this was an issue that was corrected with the latest version of the tagset. I hope to have it posted on the web for download in the next week. I can also forward you a copy.

Thanks,

Chevell

View solution in original post

3 REPLIES 3
Chevell_sas
SAS Employee

Steve, this was an issue that was corrected with the latest version of the tagset. I hope to have it posted on the web for download in the next week. I can also forward you a copy.

Thanks,

Chevell

spjcdc
Calcite | Level 5

Thanks Chevell,

I would appreciate a copy. 

It appears that I can also use htmlstyle=mso-number-format as well.  Don't know if one is preferable to another except using the tagset is easier to understand and use. 

Steve

Chevell_sas
SAS Employee

Yes, you can use the htmlstyle= as well as you mentioned and can handle various other style issues that arise, however, the optionss was added just for convenience.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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