从Windows桌面应用程序连接到CICS [英] Connecting to CICS from Windows Desktop Application

查看:226
本文介绍了从Windows桌面应用程序连接到CICS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在有了新的要求。我手边有一些特别的工作。要求是连接基于桌面的Java应用程序以从某些CICS Transaction生成的Mainframe中读取数据。 [基本上我必须读取所有附加到文件中的记录(与linux中的tail -f文件名相同)。这仅仅是因为我的要求是不同的。]

Now there is a new requirement. I have got some adhoc work at hand. The requirement is to connect a desktop based Java application to read data from Mainframe generated by some CICS Transaction. [Basically I have to read all the records being appended into a file (same way as we do tail-f filename in linux). This is just for FYI my requirement is something different.]

我询问,并且知道我的雇主无法向我提供MQ或CICS Transaction Gateway访问权限。他提出了一些屏幕抓取方法。我已经使用VB.Net应用程序和Quick3270以及IBM Communicator Emulators完成了这项工作。这两个仿真器都提供了可用于读取屏幕上任何内容的功能。

I inquired, and came to know that my employer cannot provide MQ or CICS Transaction Gateway access to me. He suggested some method of screen scraping. I have already done that using VB.Net application and Quick3270 as well as IBM Communicator Emulators. Both these emulators provide functions which can be used to read whatever is there on the screen.

您可以参考EHILLAPI编程细节(仿真器编程语言) - http://publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index .jsp?topic = / com.ibm.pcomm.doc / books / html / emulator_programming07.htm 如果您对学习感兴趣。

You can refer to EHILLAPI programming details (Language for Emulator programming) - http://publib.boulder.ibm.com/infocenter/pcomhelp/v5r9/index.jsp?topic=/com.ibm.pcomm.doc/books/html/emulator_programming07.htm if you are interested in learning.

但是这种方法限制了我可以出现在屏幕上的最大字节数。使用这种方法会出现严重的网络延迟,因为我每次都必须刷新(基本上在CICS上从一个页面移动到另一个页面)以获取跨越多个页面的数据。

But this method is restricting me to the maximum number of bytes that can come on the screen. With this method there is significant network delay as I have to refresh (basically move from one page to another on CICS) everytime to get data which is spanning across multiple pages.

你能否建议我一些方法,以便我的雇主不需要让客户打开他的大型机上的任何端口或安装任何软件(因为这是不可能的)为我的雇主)。

Can you suggest me some method so that the my employer does not need to ask the client to open any port on his Mainframe or install any software (as this is not possible for my employer).

我可以使用3270终端仿真并检索所有(或至少更多数据)。这样就可以满足我的雇主的要求,他不需要向他的客户提出任何要求。 (在任何情况下,我们都在模拟器中触发CICS事务)。我们希望一切都在我的雇主的最终完成,而不会打扰客户的大型机甚至一点点。

Can I use the 3270 terminal emulation and retrieve all (or at least more data). This way the requirement of my employer is fulfilled and he does not need to ask anything to his client. (In any case from the emulator we are firing CICS Transactions). We want everything to be done at my employer's end itself without disturbing the client's Mainframe even a single bit.

请不要建议MQ,因为客户端没有它。

Please do not suggest MQ as the client does not have it.

如果您仍然建议使用CICS Transaction Gateway,那么请告诉我如何连接到远程计算机(我需要技术细节)。

- 我需要从客户端询问哪些信息。

- 我需要在我的机器上安装什么软件。
- 使用该软件的技术细节。

If you are still suggesting CICS Transaction Gateway, then please let me know how would I connect to the remote machine (I need technical details).
- What information do I need to ask from the client.
- What software do I need to install on my machine. - Technical details of using that software.

问候,

Nitin

推荐答案

我有两个建议供您查看。我已成功完成了两项工作。您的客户端设置可以决定是否合适(问题没有提及做这些事情)。

I have two suggestions for you to look at. I have done both successfully. Your client setup can decide if either is palatable (the question doesn't mention not doing these things).


  1. 您可以通过DB2存储过程在大型机上调用CICS代码。 IBM提供了一个名为EXECCICS的标准版,我们将其用于项目。您提供标准CICS参数和通信区域。存储过程在大型机中执行程序并返回通信区域。您使用JDBC。这个解决方案简单易行。

  1. You can call your CICS code on the mainframe via a DB2 stored procedure. There is a standard one supplied by IBM called EXECCICS that we used for a project. You supply the standard CICS parameters and comm area. The stored procedure executes the program in the mainframe and returns you the comm area. You use JDBC. This solution is simple and easy the execute.

我们还启用了对大型机上CICS程序的HTTP访问。根据我的理解(记得我刚刚调用它 - 没有启用它)它是一个非常标准的配置。客户端代码只对特定端点执行HTTP POST。生成的文档是comm区域和其他好东西。

We have also enabled HTTP access to the CICS program on the mainframe. To my understanding (remember I just called it -- not enabled it) it is a pretty standard configuration. The client code just performs an HTTP POST to a specific end point. The resulting document is the comm area plus other goodies.

这些解决方案是针对同一个项目独立开发的,都是在生产中。将HTTP方法添加到混合中的唯一原因是因为存储过程中的数据大小限制已删除HTTP。

These solutions were developed independently for the same project and are both in production. The only reason the HTTP method was added to the mix was because of a data size limit in the stored procedure that HTTP removed.

这篇关于从Windows桌面应用程序连接到CICS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆