Next: Decode String into
Up: String Scanning and
Previous: Decode String into
This Subprogram will check that the specified string corresponds to a valid
file specification, returning the full expanded filename if successful.
Short Name Calling Sequence
STATUS = UIDCFI(STRING,FILNAM[,FILLEN,EXISTS])
Long Name Calling Sequence
STATUS = UI_DECODE_FILENAME(...)
Input Arguments
STRING (Character) Text String
Output Arguments
FILNAM (Character) Expanded Filename
FILLEN (Integer) Length of Filename (Optional)
EXISTS (Logical) File exists flag (Optional)
Function Value
UI__SUCCESS ) Success
UISUCC )
UI__TRUNCATED ) Filename Truncated
UIDFLT
UI__ILLEGAL_SYNTAX ) Illegal Syntax
UIILSY )
Note:
- The UI__ILLEGAL_SYNTAX Function Value will be returned if the
text string does not conform to a correct Filename syntax.
No modification will be made to the FILNAM Argument in this case.
- The UI__TRUNCATED Function Value indicates that the full filename
specifiation overflowed the FILNAM Argment and has therefore been truncated.
- The FILLEN Argument is optional and, if present, will return the length (in
characters) of the expanded file specification after any truncation.
- The EXISTS Argument is optional and, if present, will indicate whether
the file exists or not.
- All Errors are informational only, no Error Message will be issued.
- Any leading or trailing spaces or tabs within STRING will be ignored.
- See UI_GET_FILENAME for further notes on Arguments.
Liz Buckle
Fri Jan 13 17:28:23 CST 1995