If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > execute script shell in stored procedure.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-09, 12:05
wahiba wahiba is offline
Registered User
 
Join Date: Jun 2004
Location: Madrid
Posts: 13
Question execute script shell in stored procedure.

Hello,

Somebody can tell me how to execute un script shell with parameters in stored procedure of informix-SE.

this my exemple which don't accept v_accode:

CREATE procedure unl_insert (v_accode char(10))

SYSTEM
"./unl_insert_ecg.ksh v_accode";

END procedure

The script is :unl_insert_ecg.ksh
parameter is variable of informix SPL --> v_accode


thanks in advance.

wahi.
Reply With Quote
  #2 (permalink)  
Old 12-23-09, 19:25
bigcalm bigcalm is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
Well, it's not entirely clear what you want, but....

I think you're looking for the concatenate operator || which will join one string to another.

SYSTEM "./unl_insert_ecg.ksh" || v_accode;

Though you should really include exception handling around it, and possibly define your return values.
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On