View previous topic :: View next topic |
Author |
Message |
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Sun Jun 18, 2017 4:51 pm Post subject: Enhancement to DRIVER= in OPEN |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Mon Jun 19, 2017 7:05 am Post subject: |
|
|
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? |
|
Back to top |
|
|
wahorger
Joined: 13 Oct 2014 Posts: 1225 Location: Morrison, CO, USA
|
Posted: Mon Jun 19, 2017 2:45 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8011 Location: Salford, UK
|
Posted: Mon Jun 19, 2017 3:40 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|