dbTalk Databases Forums  

call os command from stored procedure

comp.databases.rdb comp.databases.rdb


Discuss call os command from stored procedure in the comp.databases.rdb forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Javier Coego
 
Posts: n/a

Default call os command from stored procedure - 09-22-2004 , 04:34 AM






- Hi, everyone. -

- I'm trying to write an stored procedure which reads usernames from
an RDB table and creates these users in the OS VMS. -

- How can I call OS/DCL commands from an stored procedure passing
parameters (usernames) in the command-line? -

- Thanks in advance. -

- Kind regards. -

Javier Coego.

Reply With Quote
  #2  
Old   
Keith Cayemberg
 
Posts: n/a

Default Re: call os command from stored procedure - 09-22-2004 , 02:49 PM






Javier Coego wrote:
Quote:
- Hi, everyone. -

- I'm trying to write an stored procedure which reads usernames from
an RDB table and creates these users in the OS VMS. -

- How can I call OS/DCL commands from an stored procedure passing
parameters (usernames) in the command-line? -

- Thanks in advance. -

- Kind regards. -

Javier Coego.
Hi Javier,

I have setup an INSERT trigger with a LIB$SPAWN "External Function"
which performs a DCL SUBMIT command with parameters taken from fields of
the inserted record. You should be able to adapt an example which I
posted to the Rdb Logserver Mailing List a few years ago, assuming you
have the necessary DB privileges.

http://www.jcc.com/search/rdblistser...1/3bd9bd3d.htm


Cheers!

Keith Cayemberg


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.