Getting this error while running proc surveymeans
proc surveymeans data=ms;/*mean LOS*/
2336 weight discwt;
2337 cluster hospid;
2338 strata nis_stratum;
2339 domain msc;
2340 var LOS;
ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:
The SAS task name is [SURVEYMEANS]
ERROR: Read Access Violation SURVEYMEANS
Exception occurred at (0688A65F)
Task Traceback
Address Frame (DBGHELP API Version 4.0 rev 5)
000000000688A65F 000000004EB55180 sasods:tkvercn1+0x12961F
000000004827B91E 000000004EB55188 sasstgr:tkvercn1+0x5A8DE
00000000482AE80A 000000004EB55B10 sasstgr:tkvercn1+0x8D7CA
0000000048298E8F 000000004EB55E00 sasstgr:tkvercn1+0x77E4F
0000000008BBFACA 000000004EB55E08 sasoda:tkvercn1+0x7EA8A
0000000008B5FDC8 000000004EB55F40 sasoda:tkvercn1+0x1ED88
0000000008BBFACA 000000004EB55F80 sasoda:tkvercn1+0x7EA8A
0000000008B424F8 000000004EB56590 sasoda:tkvercn1+0x14B8
0000000047EE0DAA 000000004EB56598 sasmrk:tkvercn1+0x10FD6A
0000000047E649E0 000000004EB56B40 sasmrk:tkvercn1+0x939A0
0000000028C466BA 000000004EB56B48 sastags:tkvercn1+0x5567A
0000000028C1FEF5 000000004EB57120 sastags:tkvercn1+0x2EEB5
000000002600ADFA 000000004EB57128 sasxml:tkvercn1+0x49DBA
0000000025FC25DA 000000004EB57210 sasxml:tkvercn1+0x159A
0000000006973BEA 000000004EB57250 sasods:tkvercn1+0x212BAA
0000000006823F6A 000000004EB575C0 sasods:tkvercn1+0xC2F2A
00000000067BEDA3 000000004EB57CA0 sasods:tkvercn1+0x5DD63
0000000006973BEA 000000004EB57CE0 sasods:tkvercn1+0x212BAA
00000000067D4805 000000004EB5BD10 sasods:tkvercn1+0x737C5
0000000006973BEA 000000004EB5BD50 sasods:tkvercn1+0x212BAA
00000000067C4B72 000000004EB5DFE0 sasods:tkvercn1+0x63B32
000000004F1EF12A 000000004EB5DFE8 sasqsmea:tkvercn1+0xCE0EA
000000004F19225F 000000004EB5EC10 sasqsmea:tkvercn1+0x7121F
000000004F1257EC 000000004EB5F2D0 sasqsmea:tkvercn1+0x47AC
000000004F121627 000000004EB5FBC0 sasqsmea:tkvercn1+0x5E7
00000000033289DB 000000004EB5FBC8 sashost:Main+0x10EBB
000000000332E61D 000000004EB5FF20 sashost:Main+0x16AFD
00007FF8D53A7BD4 000000004EB5FF28 KERNEL32:BaseThreadInitThunk+0x14
00007FF8D682CED1 000000004EB5FF58 ntdll:RtlUserThreadStart+0x21
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE SURVEYMEANS used (Total process time):
real time 24:43.38
cpu time 1:52.67
Did you contact Tech support?
The address is support-at-sas-dot-com.
Include the output of proc setinit in the email.
I suggest you follow the advice in the log and track this to SAS Tech Support. A read acccess violation is a pretty serious error and it means the SAS procedure cannot properly handle your data and procedure settings.
You could also try running this with a much smaller sample of data to see if that helps.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.