BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can anyone tell me if there is a known bug which causes this to intermittently occur?........

911
912 proc format;
913 value $pol_num
914 '10'='0'
ERROR: The quoted string '10' is not acceptable to a numeric format or informat.
915 '11'='1'
916 '12'='2'
917 '13'='3'
918 '14'='4'
919 '15'='5'
920 '16'='6'
........

Clearly it is a character format so why does SAS think it's a numeric? It usually works but every so often throws a wobbler.
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Clearly there is some SAS code executed ahead of your PROC FORMAT, which is likely contributing to this condition. Share more info about this code and also info about your SAS environment (OS, version and SP level -- from SASLOG). And any info about what conditions the problem occurs would also be useful. And it may help by coding a SAS RUN; statement ahead of a PROC execution so that SAS compiles the code up to that point before it interprets the next PROC / DATA step.

Scott Barry
SBBWorks, Inc.
deleted_user
Not applicable
Thanks Scott,

It's XP Professional, SP2.

I'm certain it is not a code issue as simply restarting SAS and runinng the same code causes no issue most of the time. It seems completely random. IN other words. probably windows related.

All the steps before the proc have run; statements.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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