BookmarkSubscribeRSS Feed
rickpaulos
Obsidian | Level 7

I always want to see the title line in my OUTPUT window when I use the FIND or RFIND (repeat find) command to hi-lite text.

But SAS normally sets the line with the found text to the top of the output window so I can't see the title & page number.

The only time it doesn't do that is if the repeat find text is on the currently visible page.

Is there an option to always keep line 1 visible for each output page at the top of the window when using FIND or RFIND?

I do use OPTIONS PAGESIZE =xx to keep the OUTPUT page smaller than the maximized (Zoom) window so there is never any reason for a page to not start with line 1 visible.

If I need to print output (<1% of the time), I change the OPTION PAGESIZE =  to match my printer and rerun the PROC.

If I use the PgUp key to jump to the top of the page, the found text Hi-lite disappears so that's not too useful either.  SAS does leave the cursor at the found text but it isn't very obvious.  SAS also loses track of the latest find.  RFIND just finds the same line again.

Scrolling up with the mouse wheel or scroll bars is tedious and if you over do it, the output jumps to the previous page.

Using cursor keys to get to the top is the most tedious.

re: Win7 with SAS 9.3 but this has been an issue for many years.

6 REPLIES 6
Peter_C
Rhodochrosite | Level 12

Tempting to suggest a keyboard function key macro.it would

  1. pop up a message box to collect the search string
  2. then find that string
  3. jump to top of that page
  4. then find the target string again

Since the second find will be successful within the current page, you will have title at top of page and target string both visible at the same time.

but then, it's not a function i would use

rickpaulos
Obsidian | Level 7

I'll try it and see.

What is the text command to jump to the top of the current page?

Peter_C
Rhodochrosite | Level 12

I find this command works in text output

       find '0c'x prev

That seeks the standard ascii page-skip binary code

rickpaulos
Obsidian | Level 7

it works, but not so well, that bleeps the text I was trying to find so I can't do a rfind.

Is there a command to program a function key?  ie, use a key to program another key?  I've only used the menus, Tools, Options, Keys dialog to program keys.

I'm thinking one key to program the prompted search text in to the next key.  (sounds like lord of the rings, one ring to rule them all). Is the 'search text' stored somewhere that is accessible by other than the find and rfind commands?

Peter_C
Rhodochrosite | Level 12

with the catalog engine for the filename function and statement you could write into and read from a catalog in the work  lib

Peter_C
Rhodochrosite | Level 12

There appears to be a KEYDEF command that might help.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 1395 views
  • 0 likes
  • 2 in conversation