Operating System - OpenVMS
1828038 Members
2192 Online
109973 Solutions
New Discussion

Re: Error message:Data format error.........

 
Adeodu
New Member

Error message:Data format error.........

Hello people.
I don't know what brand of compiler i use but it compiles with FOR1 FILENAME.FOR command. Then PAS2 FILENAME.FOR.Then LINK FILENAME. The progarm is run by typing just the filename(without the extension). I wrote this program,I get past the first 3 stages with no error but when i want to run it, it displays 'data format error'ith some other things. I dont know how to correct this.
Suggestions are most welcome.
3 REPLIES 3
Willem Grooters
Honored Contributor

Re: Error message:Data format error.........

Given your're working on the VMS platform:
The minimum of information is (you guessed it) the compiler brand. Given your extension, it would be a FORTRAN compiler?

Normally, if there is a listing, it will show up in the listing header. Otherwize, run ANALYSE/OBJECT (eventually /OUTPUT=), it will show the compiler brand and version. Post this information first, please.

Willem
Willem Grooters
OpenVMS Developer & System Manager
Hein van den Heuvel
Honored Contributor

Re: Error message:Data format error.........


Your description of the development environment differs from the standard one.
I suspect someone is 'helping' by using some scripts and/or alia commands.
Where you write FOR1, we expect FORT
That PAS2, frankly I don't understand.
We woudl expect 'FORTran' again, based on the name. Maybe a pre-compiler is being used?
When you say you run by typing the filename, we expect "RUN FILENAME"
That may or may not be important.
Please show us the resuls of :
SHOW SYMB FOR1,PAS2,LINK,FILENAME (one at a time)
SHOW LOG DCL$PATH, FILENAME

Have you have used the VMS Debugger? I encourage you to spend an hour to figure that out, because it is the best tool to understand what problem you are having and exactly where.

Roughly speaking what you will do is:
FORTRAN/DEBU/NOOPT filename
LINK/DEBU filename
RUN filename
:
DBG> SET BREAK
:
DBG> GO
DBG> STEP
:


Enjoy!

Hein.

Martin P.J. Zinser
Honored Contributor

Re: Error message:Data format error.........

Hi,

and to give us some more clues

1.) The output of fortran/version
2.) The output of write sys$output f$getsyi("version")
3.) The <> error message you receive.

Greetings, Martin