11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System and Other FunctionsParameterstargetThe following are the available types of values for the target parameter:Target Typepath namefile namenull string ("")DescriptionAn expression that evaluates to a string specifying the path to the fileor group of files you want to list.A file name. The default location is the current dataset.Returns the next matching file name from the previous $ZSEARCH.ExamplesThe following Windows examples find all files ending with “.DAT” as a file extension inthe SAMPLES namespace.ZNSPACE "SAMPLES"SET file=$ZSEARCH("*.DAT")WHILE file'="" {WRITE !,fileSET file=$ZSEARCH("")}WRITE !,"That is all the matching files"QUITreturns:c:\cachesys\mgr\samples\CACHE.DATThe following Windows example finds all files beginning with the letter “c” in the SAMPLESnamespace.ZNSPACE "SAMPLES"SET file=$ZSEARCH("c*")WHILE file'="" {WRITE !,fileSET file=$ZSEARCH("")}WRITE !,"That is all the matching files"QUITreturns:c:\cachesys\mgr\samples\CACHE.DATc:\cachesys\mgr\samples\cache.lck558 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!