PxPlus User Forum

Main Board => Discussions => Language => Topic started by: Ken Sproul on February 12, 2021, 05:11:57 PM

Title: Post Open Embedded IO Procedure with Direct Access File Path
Post by: Ken Sproul on February 12, 2021, 05:11:57 PM
When using an embedded IO procedure with a file that is being opened as the result of the direct access method in a read statement (see example below), is there any way to know that the file is being opened by direct access?


Example:
read ("custfile",key=custnum$)

Title: Re: Post Open Embedded IO Procedure with Direct Access File Path
Post by: Mike King on February 13, 2021, 10:55:42 AM
I can't think of any way to determine the difference.   Now the Direct read does use HFN to assign the channel number, so if your opens don't use HFN you might be able to determine the difference.