Chapter Contents

Previous

Next
Window Directory

Print Window

Print Window

[IMAGE]

DESCRIPTION
The Print window displays the value of an expression. The > and >> command prefixes are used with the print command to direct output from the command to either a new or an existing Print window. See Directing Commands to a Window for information about the > and >> command prefixes. When you are directing the print command to the Print window, EXPRESSION and %FMT are the only arguments that can be used.

As shown in Print Window, the top two lines of the Print window contain three fields:

Expr:
identifies the expression that is displayed.

Address:
shows the address of the object that is represented by the expression. This address may not be valid if the expression contains more that one variable. The Address: field is protected and cannot be used to specify the address of an expression to be displayed.

Format:
is the format that is used to display the value of the expression. Leaving the format area blank causes the debugger to use the default format.

Once a Print window has been opened, you can specify a new Expr: or Format: value by typing that value following the appropriate prompt and pressing the ENTER key.

The top two lines are followed by the value area, which contains one or more lines. The value area is always 200 characters wide, which usually enables you to display the entire value. Long lines in the value area can be viewed by scrolling the window left and right. Note that value area width cannot be changed and that it is independent of the window width, which you can change.

If the expression is of scalar type, and a new window is used to display its value, the value area is only one line high. If an existing window is used, no adjustment to the height is made when the value is displayed; however, you are free to adjust the size of the Print window or scroll the value area once it has been displayed.

If the expression is of aggregate (structure, union, or array) type and a new window is used to display its value, the height of the value area is determined by your default configuration. A structure is shown in the Print window in Print Window. If an existing window is used, no adjustment to the height or width is made when the expression is displayed. If the value area is not sufficient to display all the members of the structure, union, or array, you can vertically scroll through the value area.

ADDITIONAL DISCUSSION

SEE ALSO
The print command for the following:


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.