![]() Chapter Contents |
![]() Previous |
![]() Next |
| LNAMECHK |
| Category: | Image |
| Syntax | |
| Details | |
| Example |
Syntax |
| rc= LNAMECHK(path-string); |
| 0 | The path string is a valid path to a file. |
| >0 | The path string is not a valid path to a file. |
Type: Numeric
Type: Character
| Details |
LNAMECHK validates that the specified path string refers to an external file that exists. It does not determine whether the file contains a readable image.
| Example |
Test whether a file exists:
imgpath=lnamemk(2,fromdir,file)
rc=lnamechk(2,imgpath);
if (rc ne 0) then
do;
_msg_="File does not exist.";
end;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.