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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > delphi call RPG

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-26-03, 01:39
fallautumner fallautumner is offline
Registered User
 
Join Date: Nov 2003
Posts: 2
delphi call RPG

Hi,guys,I hope someone can help me.

I am trying to call RPG program of DB2 in Delphi. I write a stored procedure to package the RPG, then try to call it using TStoredProc. The following is my code, when it run, nothing happened, just keep on running,and the form can not be closed!


with cl01bth.StoredProc do begin
StoredProcName := 'DOCPGM.CULDBCLS';
Params.clear;
Params.CreateParam(ftString,'INPARM',ptInput);
Params.CreateParam(ftString,'OUTPARM',ptOutput);
Params[0].AsString :=cl01bth.bth.Text ;
try
ExecProc;
except
end;
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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