This chapter describes the deployment of CICS and IMS service interfaces to Enterprise Server and the generation of clients.
When you deploy a CICS or an IMS service interface, you copy service files to the location from which the service runs. Deployment is not significantly different than deployment for any other type of service running on Enterprise Server.
Once your service interface is deployed, you can generate a client for it. Again, client generation is much the same for CICS and IMS services as it is for other services.
To deploy a service interface to Enterprise Server, set its deployment options, then run the Deploy Tool.
For most applications, the default deployment settings are acceptable. However, you might want to check the following:
Terminal Type | Facilitylike Name |
---|---|
MOD3 | MER3 |
MOD4 | MER4 |
MOD5 | MER5 |
Note: The Facilitylike name for MOD2 terminals can be blank (default) or you can set it to MER2.
For information on tracing service execution, see the section Tracing Service Execution later in this chapter.
Once your options are set, run the Deploy Tool to generate the appropriate files and install them to your enterprise server.
If your enterprise server is running on a UNIX installation of Enterprise Server/MTO, you can still deploy a service to that enterprise server. Enterprise Server/MTO can run on UNIX as a standalone application or as part of a Server Express installation. Either way, you must compile the generated driver program for your service on the platform where Enterprise Server/MTO is running. This requires that you install the Server Express COBOL Development System such that it is licensed to compile and run CICS and/or IMS applications. For more information, see the COBOL Development System Licensing Guide and the Mainframe Transaction Option Configuration and Administration Guide in your Server Express documentation.
To compile your service driver program:
[directories] ; Point MFCC to local MFDS mrpi://localhost:86
mrpi://localhost:86
To:
mrpi://dnsipaddress:86
Where dnsipaddress is the DNS name or the IP address of the UNIX machine where Enterprise Server/MTO is installed.
To transfer the service driver program source to the target machine:
http://machinename:86
Where machinename is the machine name of the UNIX machine running Enterprise Server/MTO.
nxprojdir\servintprojname\REPOS\servintname.deploy\SERVINTNAME.cbl
Where nxprojdir is your Net Express project directory, servintprojname is the name of your service interfaces project, and servintname is the name of your service interface.
Note: The filename prefix is in upper case and the extension (.cbl) is in lower case. This is important because UNIX is case sensitive.
To compile the service driver program on the target UNIX machine:
Note: The service interface filename prefix (SERVINTNAME) is always upper case.
Service Interface Type | Compiled As | Command Line |
---|---|---|
CICS screen or EBCDIC commarea | GNT | cob –vu servintname.cbl –C “CICSECM() DIALECT(OS390) DEFAULTBYTE(00) WARNING(1) COPYEXT(cpy)” |
CICS screen or EBCDIC commarea | Shared Object | cob –vUz servintname.cbl –C “CICSECM() DIALECT(OS390) DEFAULTBYTE(00) WARNING(1) COPYEXT(cpy)” |
ASCII commarea | GNT | cob –vu servintname.cbl –C “CICSECM() DIALECT(OS390) CHARSET(ASCII) DEFAULTBYTE(00) WARNING(1) COPYEXT(cpy)” |
ASCII commarea | Shared Object | cob –vUz servintname.cbl –C “CICSECM() DIALECT(OS390) CHARSET(ASCII) DEFAULTBYTE(00) WARNING(1) COPYEXT(cpy)” |
IMS Screen | GNT | cob –vu servintname.cbl |
IMS Screen | Shared Object | cob –vUz servintname.cbl |
You can use a generated client to test a service, or as a sample of accessing a service, you created using the Interface Mapping Toolkit. As part of the COBOL, Windows Form and Web Form client generation, a proxy program is also generated. The proxy provides a standard mechanism for invoking the service, and is intended to be used by production clients.
The type of client generated depends on the type of service interface:
Interface Type | Client(s) Generated |
---|---|
Java - EJB or Java Bean |
JSP |
Web services |
|
.NET |
|
Client generation for CICS services is handled the same as for non-CICS services. For more information about:
You can run Windows Form and Web Form clients from the Service Interfaces window. To do so, you must have your enterprise server started, your service deployed to your enterprise server, and your client generated.
You can edit clients to enhance their appearance and usability.
You can edit the generated Java JSP file using any JSP editor. Generated JSP files are contained in the servintname.war archive file located in the following folder:
nxprojdir\servintprojname\REPOS\servintname.deploy
Where nxprojdir is your Net Express project directory, servintprojname is the name of the service interfaces group, which is typically the same as the Net Express project, and servintname is the name of your service interface.
You can extract the JSP file using a utility such as WinZip.
Note: If you edit the JSP file, add it back to the .war archive and save a copy of it to another location to ensure it does not get overwritten. If you were to redeploy the service interface, all files in the \servintname.deploy folder are deleted and replaced by new deployment files.
When you generate a client for a Web service or .NET interface, the Client Generator generates service interface support files, Windows Form client files, an associated Visual Studio project file and, for .NET interfaces only, a .NET proxy module. To edit the Windows Form for your client, open the generated project in Visual Studio and edit it there. All generated Windows Form client files, including the Visual Studio project file, are located in the following folder:
nxprojdir\servintprojname\client\servintname\Windows
The Visual Studio project file takes the following form:
servintnameApp.cblproj
All other generated files such as support files and proxy files are located in the following folder:
nxprojdir\servintprojname\client\servintname
For information on editing Windows Forms in Visual Studio, see the topic Tutorial: Creating Windows Forms in COBOL in your Help for .NET COBOL within Visual Studio.
The Client Generator generates an .aspx file, including its codebehind file, as your Web Form that you can edit using Visual Studio Form Designer. Generated Web Form .aspx files are located in the following folder:
nxprojdir\servintprojname\client\servintname\Website
All other support components such as DLLs are located in the following folder:
nxprojdir\servintprojname\client\servintname\Website\bin
If IIS is installed on the local machine, an IIS "alias" is also created, and all files are copied to it's mapped directory. For example, an IIS alias directory for a service in the project named bankdemo might be c:\inetpub\wwwroot\bankdemo. IIS and Internet Explorer are required to execute Web Form clients.
For information on editing Web Forms in Visual Studio, see the topic Tutorial: Creating Web Forms in COBOL in your Help for Net Express with .NET within Visual Studio.
Clients generated for CICS services can be deployed to other machines in the same manner as clients generated for non-CICS services.
The process of deploying a Java client is documented in the chapter Mapping a Java Interface and Using Resource Adapters in your Java and COBOL book.
The process of deploying generated Windows Form and Web Form clients to another machine is documented in your Help for .NET COBOL within Visual Studio in the topics To deploy a Windows application to the .NET environment and To deploy a CICS service interface to the .NET environment .
You can use the Trace utility to collect information on the execution of your service.
You enable the Trace utility on the Mapping Properties dialog box CICS tab, and specify a trace queue name of eight characters or fewer.
We provide a trace viewer you can run using a TN3270 emulator. You must have your service deployed to an enterprise server configured with a TN3270 listener. You can retrieve information about transactions and render screens.
Note: Before redeploying your service for production, turn the Trace utility off.
You can trace IMS service execution using the Micro Focus Consolidated Tracing Facility (CTF). To enable tracing, set the appropriate IMS deployment options and then configure the CTF by setting the MFTRACE_CONFIG environment variable to point to the ctf.cfg configuration file.
The following is an example of the contents of a typical ctf.cfg file:
mftrace.emitter.es#level = 99999 mftrace.application = cassi mftrace.dest = textfile mftrace.emitter.textfile#Location = c:\ctf mftrace.level = debug mftrace.comp.mf.rts#api = true mftrace.comp.mf.rts#container = true mftrace.comp.mf.rts#external = true mftrace.comp.mf.rts#fsys = false mftrace.comp.mf.rts#jsem = false mftrace.comp.mf.rts#memory = false mftrace.comp.mf.rts#mfentmap = true mftrace.comp.mf.rts#mfpm = false mftrace.comp.mf.rts#pgm = true mftrace.comp.mf.rts#pgmload = true mftrace.comp.mf.rts#pgmsearch = false mftrace.comp.mf.rts#syspgm = true mftrace.comp.mf.rts#signal = true
After running a trace, search the resulting logfile for the text string MFEBI, which starts the section where IMS service execution trace information begins.
Copyright © 2007 Micro Focus (IP) Ltd. All rights reserved.