Software Archive
Read-only legacy content
17061 Discussions

Followup to Q1022: Converting Unformatted Files on Windows 2000

Intel_C_Intel
Employee
334 Views
I got a great deal of help from Knowledge Base Q1022 (http://www.compaq.com/fortran/kb/q1022.html) RE: transferring VMS UNFORMATTED files to the Visual Fortran environment. Looks like converting UNFORMATTED files via either DCL (SET FILE) or the two VMS code examples provided (unix_to_segmented.for or segmented_to_unix.for) are good paths.

I have a situation where we have a great number of these VMS UNFORMATTED files transferred to a Windows environment, and would like to do the conversion to a readable format on the Windows side. My question is: is there something like the SET FILE command or the two Fortran examples that will let me do the conversion job in the Windows world?

Any tips would be appreciated...thanks!

David Miller
0 Kudos
1 Reply
Steven_L_Intel1
Employee
334 Views
As explained in the article, the act of transferring the files to Windows almost certainly strips off the record length information, which is needed to reconstruct the file. If you know all the records are the same length, then you can open the file ACCESS='DIRECT' and read the records that way, then write them to a sequential unformatted file.

Steve
0 Kudos
Reply