Post Open Embedded IO Procedure with Direct Access File Path

Started by Ken Sproul, February 12, 2021, 05:11:57 PM

Previous topic - Next topic

Ken Sproul

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$)

Ken Sproul
DPI Information Service, Inc.
Pivotal Systems LLC

Mike King

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.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com