Examples of $ZSEARCH()

Example:

    
    GTM> WRITE $ZSEARCH("DATA.DAT")
    PROJK:[TEST]DATA.DAT;6
    GTM>
    
    
    

This uses $ZSEARCH() to display the full RMS file-specification of the current version of "DATA.DAT" in the process current default directory.

Example:

    GTM>SET x=$ZSEARCH("*.M")
    GTM>FOR S x=$ZSEARCH("*.M") Q:x="" W !,$ZPARSE(x,"NAME")
    

This FOR loop uses $ZSEARCH() and $ZPARSE() to display M source file names in the process current default directory. To ensure that the search starts at the beginning, the example resets the context by first searching with a different argument.