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

Hello!

I have been working on the first demo for Lesson 3 on SAS Studio in SAS OnDemand for Academics. I started off with reloading the pg1 library file. When trying to run the print procedure for the pg1.storm_summary data set, I receive the following error message:

SAS error Message.png

 

The code I used is (without the extra comments from the practice file):

 

proc print data=sashelp.cars;
	var Make Model Type MSRP MPG_City MPG_Highway;
	where Type="SUV" and MSRP <= 30000;
run;	


proc print data=pg1.storm_summary;
	*Add WHERE statement;
run;

I received the following in the log.

 

 
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 proc print data=pg1.storm_summary;
74 *Add WHERE statement;
75 run;


ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:

The SAS task name is [PRINT (2]
Segmentation Violation

Traceback of the Exception:

/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/sas(+0x16844e) [0x55a4d874544e]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/sas(+0x4ee1f) [0x55a4d862be1f]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x144) [0x7f690174aac4]
/lib64/libpthread.so.0(+0xf5f0) [0x7f6902d735f0]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(__intel_ssse3_rep_memcpy+0x45) [0x7f68a484f8e5]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(+0xa6897) [0x7f68a4800897]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(setGroupStructureValues+0xeba) [0x7f68a47f573a]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(+0xafc56) [0x7f68a4809c56]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(parsePdfElements+0x1118) [0x7f68a4808f38]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(processAccessibilityValues+0x3b) [0x7f68a4807deb]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/saspdpdf(yugextn+0x2a8) [0x7f68a4784d38]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(render_page+0xe68) [0x7f68a4c7cad8]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(place_+0x3aae) [0x7f68a4c8be4e]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(+0x4603b) [0x7f68a4c9f03b]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(+0x44172) [0x7f68a4c9d172]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(+0x432b7) [0x7f68a4c9c2b7]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(wobmth+0x57) [0x7f68a4ceb567]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(+0x481a1) [0x7f68a4ca11a1]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/sasmrk(wobmth+0x57) [0x7f68a7eaa057]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/sasmrk(+0x1b863) [0x7f68a7da4863]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(wobmth+0x57) [0x7f68a4ceb567]
/pbr/sfw/sas/940/SASFoundation/9.4/sasexe/saspso(+0x2b7f1) [0x7f68a4c847f1]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/sasprt7(wobmth+0x57) [0x7f68a1e858d7]
/pbr/sfw/sas/940/SASFoundation/9.4/dbcs/sasexe/sasprt7(+0x1385e) [0x7f68a1e8085e]

NOTE: The SAS System stopped processing this step because of errors.

ERROR: An exception has been encountered.
Please contact technical support and provide them with the following traceback information:

The SAS task name is [PRINT (2]
Segmentation Violation

NOTE: There were 3118 observations read from the data set PG1.STORM_SUMMARY.
NOTE: PROCEDURE PRINT used (Total process time):
real time 4.63 seconds
user cpu time 4.48 seconds
system cpu time 0.15 seconds
memory 236205.34k
OS Memory 292328.00k
Timestamp 05/26/2021 03:11:01 AM
Step Count 35 Switch Count 0
Page Faults 0
Page Reclaims 69426
Page Swaps 0
Voluntary Context Switches 10
Involuntary Context Switches 5
Block Input Operations 0
Block Output Operations 3168
 
I then re-ran the program, since the pg1 library is active. Here is the code again, with no changes:
proc print data=sashelp.cars; 
	var Make Model Type MSRP MPG_City MPG_Highway; 
	where Type="SUV" and MSRP <= 30000; 
run;	

proc print data=pg1.storm_summary; 
	*Add WHERE statement; 
run; 
I now received the following in the log:
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73
74 proc print data=sashelp.cars;
75 var Make Model Type MSRP MPG_City MPG_Highway;
76 where Type="SUV" and MSRP <= 30000;
77 run;

NOTE: There were 26 observations read from the data set SASHELP.CARS.
WHERE (Type='SUV') and (MSRP<=30000);
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.07 seconds
user cpu time 0.07 seconds
system cpu time 0.00 seconds
memory 5118.71k
OS Memory 29352.00k
Timestamp 05/26/2021 03:15:25 AM
Step Count 25 Switch Count 0
Page Faults 0
Page Reclaims 1055
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 16


77 !
78
79
80 proc print data=pg1.storm_summary;
ERROR: Libref PG1 is not assigned.
81 *Add WHERE statement;
82 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
user cpu time 0.00 seconds
system cpu time 0.00 seconds
memory 216.93k
OS Memory 29348.00k
Timestamp 05/26/2021 03:15:25 AM
Step Count 26 Switch Count 0
Page Faults 0
Page Reclaims 27
Page Swaps 0
Voluntary Context Switches 0
Involuntary Context Switches 0
Block Input Operations 0
Block Output Operations 0

83
84
85 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
97
 
 
The pg1 library disappears. I then re-ran the library.sas file and the process described above follows again.
 
1 ACCEPTED SOLUTION

Accepted Solutions
carbonec
Fluorite | Level 6

I messaged technical support about this issue, and they found a solution. I will post it here for future reference, if anyone else has this issue.

 

I had the setting Enable Accessible PDF option under Preferences > Results checked. It needs to be unchecked and the program works! Please see the included screenshot:

carbonec_0-1622223288110.png

 

View solution in original post

3 REPLIES 3
ballardw
Super User

Interesting. Lots of errors related to LIBRARY but no code for how the LIBRARY is established.

 

I suggest that you show the LIBNAME code submitted and the LOG from that.

 

Typically those exceptions indicate that you either submitted some code that was so unexpected the SAS programmers couldn't provide an appropriate check/error message OR sometimes indicate a SAS installation problem. There are also odd times if you copy and paste code from some sourced, like word processor files or websites, that there are characters that you do not see in the editor that can cause all sorts of odd problems.

 

This bit:

80 proc print data=pg1.storm_summary;
ERROR: Libref PG1 is not assigned.
81 *Add WHERE statement;
82 run;

Means that the Library PG1 is NOT "active".

carbonec
Fluorite | Level 6

The code I used for the library is:

libname pg1 "/home/u43530149/EPG1V2/data";

The following is the log, after I run this:

 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         libname pg1 "/home/u43530149/EPG1V2/data";
 NOTE: Libref PG1 was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /home/u43530149/EPG1V2/data
 74         
 75         
 76         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 88         
carbonec
Fluorite | Level 6

I messaged technical support about this issue, and they found a solution. I will post it here for future reference, if anyone else has this issue.

 

I had the setting Enable Accessible PDF option under Preferences > Results checked. It needs to be unchecked and the program works! Please see the included screenshot:

carbonec_0-1622223288110.png

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

LIBNAME 101

Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1967 views
  • 1 like
  • 2 in conversation