thanks a million everyone!
dougc
Charles Stevenson wrote:
Look up FILEINFO() function.
Look up STATUS statement (STATEMENT, not function), too.
$include UNIVERSE.INCLUDE FILEINFO.H
IF ASSIGNED( VAR ) THEN
IF FILEINFO( VAR, FINFO$IS.FILEVAR ) THEN
* yep, it's a file variable alright.
END ELSE
* it's been assigned but it ain't a file.
END
END ELSE
* it's not even been used yet,
* ;et alone a file variable.
END
The UV documentation talks about
$INCLUDE SYSCOM FILEINFO.INC
instead of
$INCLUDE UNIVERSE.INCLUDE FILEINFO.H
but that's language cribbed from old Prime Information manuals and never
corrected.
All the above is from memory. I might have a few details wrong, but that's
the vibe of the thing.
Chuck Stevenson
stevenson.c...@gmail.com - new email address
doug chanco wrote:
is there a way (universe 10.2.x/aix) to tell if a file pointer passed into
a subroutine as a parameter is valid?
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/