Can one use Fiddler to monitor a PCOMM session, or any 3270 Emulator session?

239 views Asked by At

Can one use Fiddler to monitor a Mainframe PCOMM session? Or a Mainframe session with any 3270 Emulator software? If so, how? I have looked at the Fiddler documentation, and searched, and it is not mentioned.

The ultimate goal is to connect to the mainframe using Java code. I have already provided a PCOMM automation solution that logs on, goes to CICS, performs the transaction, screen scrapes the screens, and puts the screen data to a file. Now the client wants me to do the same thing without PCOMM. The user wants to use a Java solution. I have Java program that connects to the mainframe. But the initial menu screen is not returned in order to "log on" to the mainframe. I am seeing a series of 3270 codes, such as 255 (IAC) 253 (DO) 40 (?), I reply with 255, 253 (Will do) 40 (?) EOR. The mainframe comes back with 255, 250 (Subnegotiate) 40 (?), and so on. I tried such codes in different ways, but so far no luck. See http://www.faqs.org/rfcs/rfc1576.html for more info on the codes to negotiate a session 3270. It is a very old document and may have been updated since. Also http://www.faqs.org/rfcs/rfc854.html

My thought was to monitor the PCOMM session, to discover the correct conversation to negotiate a connection to a 3270 session. After all, PCOMM is working to make that session happen.

thanks, Baruch Atta

2

There are 2 answers

0
Baruch Atta On BEST ANSWER

Working with other staff on site here, we have concluded that Fiddler can not view PCOMM communications. We have concluded that Fiddler can only monitor BROWSER based communications. Our staff claim to be "experts" in Fiddler, with lots of experience. If anyone on STACK Overflow can actually use Fiddler to monitor PCOMM communications with a mainframe, I would love to be proven wrong.

3
Kenny On

I see what you are doing. You have a couple of options:

  1. Use either HATS or the Host on Demand (HOD) API to access the screens. This API is designed to transform the screens into Java objects that you can work with. Actually, you can use HATS to create web services (either SOAP or REST based), to which you can leverage any client to access. This is the quickest, and fastest method. Here is an overview of HATS web services. If you try just hitting the telnet stream with Java, you will spend months if not years recreating what the HATS/HOD API already offers.

  2. Modify your CICS applications and setup CICS web services. These are OSGi bundles that you deploy to JVM regions in CICS. This is the most elegant method, but requires a steeper learning curve, and time to implement. However, once you've done the first CICS program, the rest start to fall in place like dominoes. Check out this Redbook.