define variable fName as character no-undo format "x(60)".
input through value( 'find /home/sk -name "mydoc.pdf" -print' ).
repeat:
import unformatted fName.
display fName.
end.
Presumably you need to use "find" because the file is somewhere in the directory tree beneath /home/sk? Otherwise, if it is just the one file and in /home/sk/mydoc.pdf you would be better off using:
Code:
file-info:file-name = "/home/sk/mydoc.pdf".
if file-info:full-pathname = ? then
message "no such file".
else
message file-info:full-pathname.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.