Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Posts
    34

    Unanswered: Calling COBOL program from DB2 Stored Procedure

    Can somebody tell me whether I can call a COBOL program from a DB2 Stored procedure running in IBM Mainframe. If so how, please provide me an example.

    Can we do it using a native sql stored procedure or do we need to create an external stored procedure in COBOL to call another COBOL program. Also do we need to create a WLM for this?

    Thanks in advance,
    Gopu

  2. #2
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    1,126
    Quote Originally Posted by gopurs View Post
    Can somebody tell me whether I can call a COBOL program from a DB2 Stored procedure running in IBM Mainframe.
    From a stored procedure written in COBOL, you can of course call a COBOL subprogram (using the COBOL "CALL" statement).
    The only way to call a COBOL program from a native SQL stored procedure is to implement an (external) stored procedure in COBOL that either contains the given COBOL program source code, or calls it.
    --_Peter Vanroose,
    __IBM Certified Database Administrator, DB2 9 for z/OS
    __IBM Certified Application Developer
    __ABIS Training and Consulting
    __http://www.abis.be/

  3. #3
    Join Date
    Jul 2003
    Posts
    34
    Thanks Peter for your response.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •