Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Communication between VB.Net Client & IMS Connect via TC

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
Sivasankaria

New User


Joined: 23 Jul 2009
Posts: 1
Location: Chennai

PostPosted: Tue Aug 04, 2009 2:07 pm    Post subject: Communication between VB.Net Client & IMS Connect via TC
Reply with quote

Hi

I am currently working on establishing communication between VB.net program as client and IMS Connect as Listener.

Given below is the client program in VB.net

Code:
Imports System.IO
Imports System.Net.Sockets

Module Module1
    Sub Main()
        Try
            Console.WriteLine("Connecting to 172.16.11.11")
            Dim serverListener As New TcpClient("172.16.11.11", 999)
            Dim readStream As Stream = serverListener.GetStream
            serverListener.SendBufferSize = 256
            Console.WriteLine("Input Lines:")
            Dim str As String = "105800*SAMPL1*00CLIENT000        IMS1                                            170IVTNOAN960C1040"
            While True
                Dim sendBuff As Byte() = System.Text.Encoding.ASCII.GetBytes(str)
                readStream.Write(sendBuff, 0, sendBuff.Length)
                If str.StartsWith(".") Then
                    GoTo Done
                End If
                str = Console.ReadLine()
            End While

Done:       Console.WriteLine("Done")
        Catch exp As Exception
            Console.WriteLine("Exception: " + exp.ToString())
        End Try
    End Sub
End Module


When i execute this program, i am getting few errors saying that

HWSP1415E TCP/IP SOCKET FUNCTION CALL FAILED; F=READ , R=-1, E=1121, M=SDRC, ID=DELDUMMY, IPv4=172.20.34.35
HWSP1415E TCP/IP SOCKET FUNCTION CALL FAILED; F=READ , R=-1, E=1121, M=SDRC, ID=DELDUMMY, IPv4=172.20.34.35
HWSP1435E SOCKET CLOSED; REQUEST MESSAGE INCOMPLETE; M=SDRC
HWSP1445E UNKNOWN EXIT NAME SPECIFIED IN MESSAGE PREFIX; MSGID= (&< /AMPL1*00, M=SDRC

I guess that the reason for this error is input message sent from client porgram to IMS Connect is not in the format accepted by IMS Connect.

Could anyone provide me a sample client program in VB.net which can succefully communicate with IMS Connect?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Aug 04, 2009 7:28 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

When posting code, jcl, data, etc it is best to use the "Code" tag for readability.

Is there maybe a sample in the IMS Connect documentation?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Connect:Direct - RC=000000FF MSG=SVTM... R.Manivannan All Other Mainframe Topics 3 Fri Apr 21, 2017 1:30 am
No new posts DB2 CONNECT query mistah kurtz DB2 3 Fri Jul 15, 2016 6:37 pm
No new posts problem on data conversion from windo... hkalhor2 Java & MQSeries 3 Tue May 17, 2016 12:10 pm
No new posts Connect Direct details shankarm IBM Tools 2 Sat Feb 20, 2016 7:25 pm
No new posts force windows ftp client user to defa... meykh2014 All Other Mainframe Topics 0 Sun Feb 14, 2016 12:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us