Example 1

To determine if a path named PATH1 exists, code:
CONSOLE QUERY,PATH='PATH1'

If the path does not exist, CMS returns a return code of 28 in register 15.