Usage Note 22078: How to perform initial processing in the FSVIEW window
To perform initial processing in the FSVIEW window, your FORMULA entry must contain a computed variable. For example, suppose you want to suppress the note that appears on the message line in the display window informing you that your formula has been read in. Because this note only displays when your FSVIEW session is first invoked, the formula to remove the note needs to execute one time only. To clear this message from the message line, create a computed variable (such as NEWVAR) using the DEFINE command. In the Define window, enter the following SCL statements:
NEWVAR=newvar; if temp=. then do; temp=1; _msg_=' '; end;
In the above example, the variable NEWVAR is set to itself so more SCL statements can follow. The variable TEMP ensures that the statements in the formula are executed only once. The first time the formula executes, the value of TEMP is missing because it is an SCL variable that has not been referenced before and, therefore, has not been initialized. Having satisified the IF condition when the window initializes, the statements within the DO block execute. The assignment statement,
overwrites the system message that the formula has been read in. The assignment,
ensures that the statements to reset the message only execute one time. Please note that when you press the ENTER key after entering the above SCL code in the DEFINE window, the underscores in the variable name, _MSG_, are removed. You must go back and re-enter those underscores.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | SAS Reference ==> Procedures ==> FSVIEW
|
Date Modified: | 2008-01-18 15:05:00 |
Date Created: | 2002-12-16 10:56:48 |