![]() Chapter Contents |
![]() Previous |
![]() Next |
| CALL FINDEND |
| Language element: | CALL routine |
| Category: | general purpose OpenVMS |
| OpenVMS specifics: | All aspects are host-specific |
| Syntax | |
| Details | |
| Example | |
| See Also |
Syntax |
| CALL FINDEND(context) |
| Details |
Like the LIB$FIND_FILE_END Run Time Library Call, the CALL FINDEND routine releases resources that were associated with a directory search. Use the CALL FINDEND routine with the FINDFILE function.
| Example |
In the following example, FINDFILE is used to search
the user's directories for a filename that matches MYPROG*.SAS.
If it finds a file named MYPROG12.SAS,
for example, then FN is set to
myprog12.sas.
The CALL FINDEND routine is then called to terminate the directory search
and to release the associated resources.
context=0;
fn=findfile("myprog*.sas",context);
do while (fn ^= ' ');
put fn;
fn=findfile("myprog*.sas",context);
end;
call findend(context);
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.