DATA Step, Macro, Functions and more

Last statement not executing

Reply
Contributor
Posts: 29

Last statement not executing

Hello all,

I have a bizarre little problem...whatever statement is last in my program does not execute. Or more accurately, SAS executes it but it takes far, far longer than it should to complete (I have yet to see it finish). And it's always for the last statement in my program (say, a PROC REG).

Has anyone else encountered this error?

Thank you for your time.
Super Contributor
Super Contributor
Posts: 3,174

Re: Last statement not executing

Please share your code *AND* your SASLOG output (with all source code revealed).

Scott Barry
SBBWorks, Inc.
SAS Super FREQ
Posts: 8,740

Re: Last statement not executing

Hi:
Just a bit of additional troubleshooting. PROC REG (and some other procedures) have an "interactive" capability. They do not end with a RUN; as the step boundary, they end with a QUIT;

If you only have a RUN; at the bottom of your PROC REG step, you might see whether adding a

[pre]QUIT;[/pre]

makes the PROC REG finish up in a quicker manner.

cynthia
Contributor
Posts: 29

Re: Last statement not executing

Bingo! That did the trick, Cynthia! Thanks a billion!
Ask a Question
Discussion stats
  • 3 replies
  • 128 views
  • 0 likes
  • 3 in conversation