Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-13-2007, 10:00 PM
Member
 
Join Date: Dec 2007
Posts: 1
babu95 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-14-2007, 05:21 PM
ShoeNinja's Avatar
Senior Member
 
Join Date: Oct 2007
Posts: 123
ShoeNinja is on a distinguished road
Send a message via AIM to ShoeNinja
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.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-21-2007, 03:08 PM
agattu's Avatar
Member
 
Join Date: Dec 2007
Posts: 1
agattu is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a java application from another kratoras New To Java 1 06-14-2008 04:54 AM
How to execute an External Program through Java program Java Tip java.io 0 04-04-2008 04:40 PM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 11:33 PM
urgent:calling c program from java rach New To Java 5 08-14-2007 04:43 PM
calling a java class from html Ed Advanced Java 1 07-08-2007 02:58 AM


All times are GMT +3. The time now is 04:02 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org