DATA Step, Macro, Functions and more

pc sas hangs

Accepted Solution Solved
Reply
Contributor
Posts: 44
Accepted Solution

pc sas hangs

if anyone knows help me.

I submitted a program and then  PC SAS hangs. not able to kill with task manager.

not able to see my log also. what to do?

where to check PC SAS  logs( not program logs) so that I can find out the reason for hanging the pc  sas.

regards,

RAJ


Accepted Solutions
Solution
‎08-27-2014 02:59 AM
Valued Guide
Posts: 3,208

Re: pc sas hangs

rajashm  You found a good example of some SAS code that has enexpected effects as a SAS system hangup.
Another one I remember is putting the endsas statement in a sas-macro. It will cause also a CPU-loop. This was a side effect of the conversion 8.2 to 9.1.3.

Something in the kernel (threaded kernel) changed and thre are possible unreliable effects on that. A bypass is very often (not always) to code.

Closing the window is killing the destination an other process is putting results into that.

This can heart the process sending data in a severe way   (similar to the endsas esperience),

In your case it makes more sense to instruct is should not send data. As you are obviously creating and saving pictures catalog you do not want to get the pop-up. 

31789 - ODS output automatically opens in the Results Viewer window even when specifying ODS NORESUL...  

http://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations/

---->-- ja karman --<-----

View solution in original post


All Replies
Valued Guide
Posts: 2,175

Re: pc sas hangs

which version of SAS?

Enterprise Guide

SAS University

base SAS (display manager)

If it is base SAS and you see a results or output window, then press the F3 key , because you might have the default behaviour in which SAS pauses at the end of the first page of output and waits for you - the F3 key (end command) tells SAS to run tbrough to the "end"

If you run SAS in the other ways, we will need more info

Goid luck

Contributor
Posts: 44

Re: pc sas hangs

dm "graph;end" ;

proc catalog c=work.gseg kill ;

   run;

   quit;

to clear the graph and closing the graph window. I copied this code into my program while practicing. I think because of this getting problems.

1.if you know, let me know where to check sas logs(not program logs). 2

2. if you can modify the above program to clear the history and closing the window properly,please help me.

SAS Super FREQ
Posts: 8,743

Re: pc sas hangs

The DM commands will ONLY work for people using SAS Display Manager. They will not work, for example, in SAS Enterprise Guide or SAS University Edition/SAS Studio interfaces. How do you know that there is a graph that is "hanging" the process? What code are you running when the session "hangs". Can you post your code? Peter is correct, we need more info.

cynthia

Contributor
Posts: 44

Re: pc sas hangs

Hi ,

I am using 9.2 pc SAS.

I  ran the program to make sure that sas hangs with mentioned code(only that code) .yes, it is .

I need:

I need the commands to clear the graph window ,if you can ,please(like Ctrl E for clearing the logs).

when running the programs,sas always appending the results to my graph window. which is really annoying me. Even closing the graph window and running my program again is not solving my problem.

code:

dm "graph;end" ;

proc catalog c=work.gseg kill ;  

run; 

quit;

Solution
‎08-27-2014 02:59 AM
Valued Guide
Posts: 3,208

Re: pc sas hangs

rajashm  You found a good example of some SAS code that has enexpected effects as a SAS system hangup.
Another one I remember is putting the endsas statement in a sas-macro. It will cause also a CPU-loop. This was a side effect of the conversion 8.2 to 9.1.3.

Something in the kernel (threaded kernel) changed and thre are possible unreliable effects on that. A bypass is very often (not always) to code.

Closing the window is killing the destination an other process is putting results into that.

This can heart the process sending data in a severe way   (similar to the endsas esperience),

In your case it makes more sense to instruct is should not send data. As you are obviously creating and saving pictures catalog you do not want to get the pop-up. 

31789 - ODS output automatically opens in the Results Viewer window even when specifying ODS NORESUL...  

http://blogs.sas.com/content/iml/2013/05/24/turn-off-ods-for-simulations/

---->-- ja karman --<-----
Contributor
Posts: 44

Re: pc sas hangs

thanks a lot. you understood my problem.

several times I executed that code,sometimes it is hanging but sometimes it is  not. I ran separately those statements also(dm and proc). then also can't identify when sas is hanging or when command is working fine.

anyhow I wont use those commands from now onwards and thanks again.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 539 views
  • 0 likes
  • 4 in conversation