Debugging and Testing DATA Steps |
Testing Your
Programs![]() ![]() |
PUT Statement
When the source of program errors may not be apparent, you can use the PUT statement to examine variable values and generate your own message in the log. data test; if code='1' then Type='Variable'; else if code='2' then Type='Fixed'; else put 'MY NOTE: invalid value: ' code=; run;
In this example, if |
General form, simple PUT statement:
where
and much more. The following pages show examples of PUT specifications. |
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.