Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29236 Discussions

How can I open 4mm dat tape device with windows?

Makoto_I_
Beginner
888 Views
Hello,

I've posted the following question to the Intel Premier Support.
Their answer was that because it is more of a language specific issue than a compiler issue, they request me to post it here.
Could you please help me to solve the problem?

I with to open existing 4mm dat (DDS3), created with DEQ workstation, with windows 2k machine.
The DAT drive is SONY SDT-9000 SCSI drive, handled with microsoft 4mmdat.sys driver ver.5.00.2195.6655 as BUS#=0 target ID=5, LUN=0.
In the language reference, mentioned is an example "open (file='/dev/rmt8')", but I'm afraid it is not valid for windows environment.
Could you please give me an example of opening tape device on windows?

Makoto IMAI
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
888 Views
Yep, I doubt that syntax will work on Win32... but still, this Forum is not really the right place either.
I did some quick research and it appears that you need CreateFile API to open the driver as device. See this list of threadsand this particular oneon comp.os.ms-windows.programmer.win32. It looks as if you need to open it via:
hFile = CreateFile(".4mmdat"//char(0), ...)
but I'm far from sure.
Further, take a look at USEROPEN option of OPEN statement. Basically, it lets you define your own callback to substitute default OPEN behaviour, and then subsequently do just normal Fortran READ and WRITE. But half of the job would be to get the CreateFile working -- USEROPEN is just part of convenience.
Hope this helps,
Jugoslav
0 Kudos
Steven_L_Intel1
Employee
888 Views
The example is just that, a syntax example. That particular one happens to be for UNIX/Linux. As Jugoslav says, that won't work on Windows.
I think the Windows Backup API has some routines for dealing with tapes.
0 Kudos
Makoto_I_
Beginner
888 Views
Many thanks to Jugoslav and Steve!

Following Jugoslav, I tried to explore comp.os.ms-windows.* and found that drivers such as TapeDisk, DATMAN or "Direct Tape Access", which enable tape device accessible as a hard drive, might useful to me, though all I need is sequential reading.
None of these, however, seems to be compatible with win2k.

Now I understand I have to call the Windows API.

Sincerely,
Makoto IMAI
0 Kudos
Reply