![]() Chapter Contents |
![]() Previous |
![]() Next |
| NEW |
| Category: | SAS Table |
| Syntax | |
| Details | |
| Examples | |
| Example 1: Creating a SAS Table from a Model Table | |
| Example 2: Creating a SAS Table from a User Definition | |
| See Also | |
Syntax |
| CALL NEW(table-name,model-table,num-row, display-window); |
('') is specified
for table-name, then the DATAn naming convention is used to create a table in the USER library.
'')
as a placeholder if you do not want to specify a model table.
'0', then the value is a negative
number. All columns in all rows initially contain missing values. The value
for num-row cannot be a missing value.
| Details |
NEW creates a new blank SAS table. However, it does not replace an existing table.
![[cautend]](../common/images/cautend.gif)
| Examples |
if (exist(table)) then
_msg_='SAS table '||table||' already exists.';
else
do;
call new(table,'model.a',10,'n');
_msg_='SAS table '||table||' has been created.';
end;
if (exist(table)) then
_msg_='SAS table '||table||' already exists.';
else
do;
call new(table,' ',1,'y');
_msg_='SAS table '||table||' has been created.';
end;
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.