![]() Chapter Contents |
![]() Previous |
![]() Next |
| PUTVARC and PUTVARN |
| Category: | SAS Table |
| Syntax | |
| Details | |
| Examples | |
| Example 1: Using the PUTVARC Routine | |
| Example 2: Using the PUTVARN Routine | |
| See Also | |
Syntax |
| CALL PUTVARC(table-id,col-num,cval); |
| CALL PUTVARN(table-id,col-num,nval); |
| Details |
| Examples |
vnum=varnum(payid,'name');
rc=locatec(payid,vnum,'SMITH','u');
if (rc>0) then
do;
call putvarc(payid,vnum,'UPDIKE');
rc=update(payid);
end;
Change an item's price from 1.99 to 2.99 in the table referenced by the table identifier PAYID:
vnum=varnum(payid,'price');
rc=locaten(payid,vnum,1.99,'u');
if (rc>0) then
do;
call putvarn(payid,vnum,2.99);
rc=update(payid);
end;
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.