Lexical - F$PARSE
$ DFSP = F$ENVIRONMENT( “DEFAULT” ) + “.COM”
$ FSP = F$PARSE( “LOGIN”, DFSP )
“FSP” = “MYDISK:[MYDIR]LOGIN.COM;”
Notes:
Another use of F$PARSE is to complete a partial file specification, applying default values for those portions not specified.
The example shown illustrates how “LOGIN” can be expanded by applying appropriate default values for the other portions of the file specification.