Silverfrost Forums

Welcome to our forums

Enhancement to DRIVER= in OPEN

18 Jun 2017 3:51 #19767

I don't know how many folks use this feature in FTN95, but there's one 'enhancement' that would be useful.

Specifically, the ability to specify FILE= in the open statement and have the name passed along.

I know there are situations whereby one would NOT specify a filename. Using this with 1553 driver, or doing some specialized task that doesn't require a name (i have one of these in my code already). That said, having the FILE= parameter available to the driver routine would be must helpful. I can see one specifying an actual filename, a set of parameters for process control, etc.

I feel sure that there are a LOT of other tasks that would be useful to many people ahead of this one; I just wanted to get on record requesting this one.

19 Jun 2017 6:05 #19768

OK I will add this to the wish list.

Would there be a UNIT value so that the value of FILE could be retrieved via an INQUIRE statement?

19 Jun 2017 1:45 #19774

I think I understand the question. Should the driver be able to retrieve the value of the file name assigned by its UNIT=?

I would think, yes, since the unit number can be retrieved in the driver currently using get_current_fortran_unit@.

I don't see detailed information on the INQ action to support this, regarding what parameters can be passed and in which direction.

19 Jun 2017 2:40 #19775

OK. If you specify a UNIT number in your OPEN statement then I guess that this would work when the FTN95 IO library is modified.

Please login to reply.