Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
30 Views

file name from unit number

Jump to solution

Hi,

Is there a way to obtain the file name associated to a unit number?

I tried:

inquire(unit=14, opened=openedq, file=name_of_file)

but I've got an error:

error #7934: An INQUIRE statement must contain only one FILE= specifier, one UNIT= specifier or one DIRECTORY= specifier. [FILE]

Is there another way to obtain the file name associated to an unit number?

Thanks,

Calin

0 Kudos

Accepted Solutions
Highlighted
Black Belt Retired Employee
30 Views

You want NAME=, not FILE=.

View solution in original post

0 Kudos
2 Replies
Highlighted
Black Belt Retired Employee
31 Views

You want NAME=, not FILE=.

View solution in original post

0 Kudos
Highlighted
Beginner
30 Views

Thanks Steve!

Calin

0 Kudos