|
Thanks! It was a great help. Regards, Ali Asgar Juzer Wipro Technologies, Pune Ph.No: 22933700 Extn: 3343 Cell:91-98230-71361 -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg Sent: Wednesday, May 04, 2005 4:16 PM To: Midrange Systems Technical Discussion Subject: RE: How to call an AS/400 batch program from an Oracle PL/SQL pro cedure Ali - this will run the program, but your procedure will need to wait. Of course, this solution assumes you can run FTP from a stored procedure. But if you want the iSeries program to start and then your procedure keeps going, the syntax would be more like quote rcmd sbmjob cmd(call cobolpgm) The FTP approach also assumes that remote command is allowed - it might not be, as it is a huge security hole. Now it really does not matter that the program was written in COBOL vs. another language - almost never, probably. Just as it does not matter whether a PC executable was written using Delphi or VB or C or compiled BASIC. On the other hand, Oracle has a gateway product for AS/400 or iSeries - extra cost, of course, right? That lets you communicate with any iSeries from Oracle. In an SQL CALL statement you can do whatever you want. E.g., there is a 400 program called QCMDEXC that can execute any 400 command, such as SBMJOB. There is also probably ODBC or JDBC. Not sure how those interface with PL/SQL. HTH At 04:59 AM 5/4/2005, you wrote: > >I want to call an AS/400 batch program (written in cobol) from an Oracle > >PL/SQL procedure. Any ideas? > >Ali > presumably this is from another computer. >One possible solution is to use FTP. > >connect to the AS/400 with user & password then >try something like: >quote rcmd call cobolpgm > >HTH >########################################### > >This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. >For more information, connect to http://www.F-Secure.com/ > >********************************************************************** >The information transmitted is intended only for use by the addressee and >may contain confidential and/or privileged material. Any review, >re-transmission, dissemination or other use of it, or the taking of any >action in reliance upon this information by persons and/or entities other >than the intended recipient is prohibited. If you received this in error, >please inform the sender and/or addressee immediately and delete the >material. Thank you > >********************************************************************** > >-- >This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list >To post a message email: MIDRANGE-L@xxxxxxxxxxxx >To subscribe, unsubscribe, or change list options, >visit: http://lists.midrange.com/mailman/listinfo/midrange-l >or email: MIDRANGE-L-request@xxxxxxxxxxxx >Before posting, please take a moment to review the archives >at http://archive.midrange.com/midrange-l. -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l. Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or Mailadmin@xxxxxxxxx immediately and destroy all copies of this message and any attachments.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.