LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 26 Jan 2005 10:23:17 -0500
Reply-To:     "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject:      Re: Page Breaks

Jules Bosch wrote: > I have about 1,500 lines of SAS code in my program editor. I want to > print the code but with specific page breaks at particular points in > the text. Is there a page break symbol I might add that SAS will > recognize and then print the document as I wish?

Jules:

If you are printing directly to the printer, the Form Feed (0Cx) ASCII code will cause a page eject.

On my machine I have a laser printer attached to a usb port and shared as 'laser' In a command window $ net use lpt1: \\extreme\laser $ print myCodeContainingFormFeeds.sas lpt1:

If you insert a form feed character into your SAS source, it will 0. appear as a Box, blank or other Glyph, depending on your SAS editor font settings. You might considering using a font that renders unprintables as a printable (.e.g. ascii code 0Cx is a glyph with two tiny F's, representing F-orm F-eed) 1. be kept when you close and reopen in the SAS editor (this is good) 2. be ignored (as whitespace) by the SAS executor at parse time (this is good) 3. be indistinguishable from other unprintables (this is not real good, again depends on font).

Example

data _null_; run; {form feed character} data _null_; run;

Q: So how do you insert a {form feed character} character into your source code ? A: Use the old, old trick of Alt key and keypad.

To type the one character whose code is 012 (decimal) use this key sequence. Alt key down Keypad 0 Keypad 1 Keypad 2 Alt key up

Problem: You need to find these form feeds. The SAS editor Find dialog will not let you use the Alt-012 to insert a FF. This is bad. Also the Find dialog with regex search checked on will not find \f or \fu000C. This is lame, a bug daresay. However, if you know where one is, select it and press Ctrl-F to open the Find dialog. The selected text is in the find text box and will locate the other FF's.

The /*page*/ approach mentioned by Francois is also an excellent idea.

-- Richard A. DeVenezia http://www.devenezia.com/


Back to: Top of message | Previous page | Main SAS-L page