Link to home
Start Free TrialLog in
Avatar of microterf
microterf

asked on

How do I compile a .bas program in OpenVMS

Hi everyone,

    Recently our director retired, and he was the only one that really knew anything about our VMS system, we are slowly migrating everything off of it, but I have an issue right now.  

We have a program that he had written in basic that FTPs a couple files over and makes necessary changes to them.  The problem is that the program used an old IP address in there for the server it is getting the files from.  I can edit the source code to the .bas file, but I cannot figure out how to compile it.  I tried $BASIC FILENAME
 
but I get an error for the line "%INCLUDE "MVPMAP:MVP_EXTRACT_MAP.BAS"

%BASIC-E-ERROPEFIL, error opening file MVPMAP:MVP_EXTRACT_MAP.BAS
-BASIC-F-DEV, error in device name or inappropriate device type for operation
at line number 21 in file ALLEN0$DKD100:[MVP_REAL.BAS]MVP_EXTRACT_NEWIP.BAS;1
ASKER CERTIFIED SOLUTION
Avatar of SStory
SStory
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bonzothecat
bonzothecat

The error message indicates it can't find the location MVPMAP. I think you will need to define a logical name to reference this location. If you can find the file MVP_EXTRACT_MAP.BAS, then define the logical name MVPMAP to point to its directory as follows:

$ DEFINE MVPMAP <directory>

The good director may also have placed all the relevant compile and link commands in a DCL script. You can try a

$ SEARCH DKD100:[MVP_REAL...]*.COM BASIC

to see if there is an appropriate build script that includes any definitions you require.

Good luck!