VAX Basic Help 
Author Message
 VAX Basic Help

Here is a question for someone who has programed in VAX BASIC before.  Is there
anyway to execute DCL commands from inside of a basic program?  What I want
to do is to create a menu in basic and have users execute DCL commands.

Any help would be appreciated.

*******************************************************************************
* Dayna Duncan                               Metropolitan Educational Council *
* Internet & Library                         Data Center                      *
* Services Coordinator                       1300 Dublin Road                 *

*******************************************************************************



Fri, 28 Nov 1997 03:00:00 GMT  
 VAX Basic Help

Quote:

>Here is a question for someone who has programed in VAX BASIC before.  Is there
>anyway to execute DCL commands from inside of a basic program?  What I want
>to do is to create a menu in basic and have users execute DCL commands.

>Any help would be appreciated.

>*******************************************************************************
>* Dayna Duncan                               Metropolitan Educational Council *
>* Internet & Library                         Data Center                      *
>* Services Coordinator                       1300 Dublin Road                 *

>*******************************************************************************

Yes, you can execute DCL commands  from inside your VAX BASIC program.
You would do....

        CALL LIB$SPAWN("DIR")

        CALL LIB$SPAWN("RMDIR.COM")
        CALL LIB$SPAWN("MKDIR.COM")

Soapy Phan




Sun, 30 Nov 1997 03:00:00 GMT  
 VAX Basic Help

Quote:

> Here is a question for someone who has programed in VAX BASIC before.
Is there
> anyway to execute DCL commands from inside of a basic program?  What I want
> to do is to create a menu in basic and have users execute DCL commands.

> Any help would be appreciated.

Use the following:

   Spawn_String$ = 'SHOW USERS/FULL'
   CALL LIB$SPAWN (Spawn_String$)

These lines will spawn a subprocess that will execute your DCL statement
to show users, the current process hibernates until the spawned process
is finished. There are other system services that will allow you to execute
a DCL command such as LIB$DO_COMMAND, but this will exit the basic program
process you are currently running.

Eric

|-------------------------------------------------------------------|
| J Eric Chapman                            _/_/_/   _/_/_/   _/_/  |

|                                             _/   _/_/    _/       |
| My opinions have no relationship      _/   _/   _/      _/  _/    |
| with those of my employer.             _/_/    _/_/_/   _/_/      |
|-------------------------------------------------------------------|



Sun, 07 Dec 1997 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Vax Basic (b4) Port To UNIX - Please Help !!

2. Vax Basic (b4) Port To UNIX - Please Help !!

3. Converting From Vax Basic to Visual Basic

4. VAX Basic

5. VAX BASIC - reading a flat file

6. VAX BASIC EDIT$

7. VAX BASIC floating point number question

8. DEC/VAX BASIC

9. which newsgroup for VAX-BASIC and MACRO32

10. VAX-BASIC USEROPEN MACRO ROUTINE

11. Conversion VAX BASIC to a PC

12. Conversion VAX BASIC to a PC

 

 
Powered by phpBB® Forum Software