BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Calling COBOL program via Delphi

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400
View previous topic :: View next topic  
Author Message
Leafster
Guest





PostPosted: Thu Apr 29, 2004 7:32 pm    Post subject: Calling COBOL program via Delphi Reply with quote



I have the following code:

Cn400 := CreateOleObject('adodb.connection');
systemName := inputbox('What AS/400', 'Enter system name:', '');
connectString := Concat('Provider=IBMDA400;Data Source=', systemName);
connectString := Concat(connectString, ';');
Cn400.Open(connectString, '','');

cn400.Execute('{{CHGCURLIB CURLIB(X814376)}}', Rcds, adCmdText);
cn400.Execute('{{CALL PGM(X814376/FUNELDQ97)}}', Rcds, adCmdText);

It does perform the last two lines and the connection works, but I don't see
the results on the 400 that I want. The program is suppose to write a record
to a dataqueue. I can call the program on the 400 and it works.

Any thoughts?
Thanks!


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi As400 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.