Help using Base SAS procedures

[SAS 9.2] How do I disable the function to debug from first line?

Reply
New Contributor
Posts: 2

[SAS 9.2] How do I disable the function to debug from first line?

Hi All,

When I use my mouse to select few lines of SAS code for debugging, SAS 9.2 will automatically selected it from the first line.

I never encounter this when I was using 9.1.

Other than to select the codes patiently and carefully till the last ";" of my code, anyone has solution / trick for abovementioned query?

Many thanks Smiley Happy

Regards,

David

Super User
Posts: 9,681

[SAS 9.2] How do I disable the function to debug from first line?

It is very strange. I have never meet this problem.

You can try to use this way ALT + mouse.

Ksharp

PROC Star
Posts: 7,363

[SAS 9.2] How do I disable the function to debug from first line?

I've noticed odd mouse selection with 9.2 as well.  I've gotten around it by left clicking where I want to start, holding down the shift key, and then lift clicking at the very start of the line following the lines I want to run.

New Contributor
Posts: 2

Re: [SAS 9.2] How do I disable the function to debug from first line?

Hi Ksharp,

I use Alt + mouse and Alt + shift + mouse click to select codes vertically.

If you want to know how this problem occurs, try this >>>

hold <Shift> button, select a procedure step until "RUN;" from the middle part of your SAS program...

Then you continue to select a space or tab after the "RUN;"

The SAS 9.2 will automatically make a selection start from line1....

Hi Art297,

Thanks for your help... But apparentely this doesn't work...

When I accidentally selected a space after RUN; the problem hit my back again...

I have been struggling this after I had installed my 9.2.... sigh Smiley Sad

apparentely
Super User
Posts: 9,681

Re: [SAS 9.2] How do I disable the function to debug from first line?

Oh. Maybe I understand what you mean .

Try to use key UP DOWN RIGHT LEFT instead of mouse.

Ksharp

Super User
Posts: 10,500

Re: [SAS 9.2] How do I disable the function to debug from first line?

I don't know if this will help but since it will run the datastep/proc/ macro compile from where the cursor is located it may be of help.

Go to the editor tools to create a keyboard macro.

Add the commands to:

Move cursor to column 1

Collapse current line

Extend selection down

give the macro a name you like and save. Then assign a key combination to the macro.

This will select all of the code with in a datastep, sql block or proc. Then run. It does leave the executed code collapsed though.

Ask a Question
Discussion stats
  • 5 replies
  • 152 views
  • 0 likes
  • 4 in conversation