| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
| Syntax: | path-string = PATH(Comet-directory-name) |
| Discussion: | The PATH function returns the full path associated with a Comet-directory-name. |
| History: | This function was added to Comet98 in Build 266. |
| Example: |
LENGTH 3 & LOCAL DIR$ LENGTH 60 & LOCAL PATH$ . . . DIR$ = "REL" PATH$ = PATH(DIR$)In the above example, the PATH function is used to find the full path associated with the "REL" directory. |