Results 1 to 3 of 3
  1. #1
    babu95 is offline Member
    Join Date
    Dec 2007
    Posts
    1
    Rep Power
    0

    Default Calling mainframe IMS program from Java

    Hi,

    I am working on web application. We have IMS screens exist in mainframes.

    I need to invoke the IMS transaction from Java and display the results on the web screen.

    I am using a socket connection to talk to IMS environment.
    I am passing all the parameters needed to invoke the IMS program but I am getting an error - contents of buffer invalid.

    How can I correct this error? any help will be appreciated.

  2. #2
    ShoeNinja's Avatar
    ShoeNinja is offline Senior Member
    Join Date
    Oct 2007
    Posts
    124
    Rep Power
    0

    Default

    What are you using to pass the parameters to the IMS program?

    P.S. - I thought I was the only one that worked in an environment like this.

  3. #3
    agattu's Avatar
    agattu is offline Member
    Join Date
    Dec 2007
    Posts
    1
    Rep Power
    0

    Default

    I think you should have someone to look in the IMS Connect task to see if there is an error message there that gives you more information.

    If that doesn't help you, my guess is that there is something wrong in your headers. Either there is something wrong with the data in one of the fields or you got the wrong length on a field.

    Also check if the length field in the beginning of the header and in beginning of the segments is OK.

    My experience of IMS Connect is that it is very easy to use if you get it working but there can be some problem in getting the headers correct when you write your own socket program.

Similar Threads

  1. urgent:calling c program from java
    By rach in forum New To Java
    Replies: 6
    Last Post: 01-19-2010, 12:37 PM
  2. calling a java application from another
    By kratoras in forum New To Java
    Replies: 1
    Last Post: 06-14-2008, 03:54 AM
  3. Replies: 0
    Last Post: 04-04-2008, 03:40 PM
  4. Replies: 0
    Last Post: 10-04-2007, 10:33 PM
  5. calling a java class from html
    By Ed in forum Advanced Java
    Replies: 1
    Last Post: 07-08-2007, 01:58 AM

Posting Permissions

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