TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Internet Explorer
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Lync
See all products »
Resources
Curah! curation service
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Subscriptions
TechNet Video
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Microsoft Update
Trials
Windows Server 2012 R2
System Center 2012 R2
Microsoft SQL Server 2012 SP1
Windows 8.1 Enterprise
See all trials »
Related Sites
Microsoft Download Center
TechNet Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
e-Learning overview
Certifications
Certification overview
MCSA: Windows 8
Windows Server Certification (MCSE)
Private Cloud Certification (MCSE)
SQL Server Certification (MCSE)
Other resources
TechNet Events
Second shot for certification
Born To Learn blog
Find technical communities in your area
Support options
For small and midsize businesses
For enterprises
For developers
For IT professionals
From partners
For technical support
Support offerings
For home users
More support
Microsoft Premier Online
Microsoft Fix It Center
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
International support solutions
Log a support ticket
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
GD Bloggers
This is the blog site for Microsoft Global Delivery Communities focused in sharing the technical knowledge about devices, apps and cloud.
Visitor Globe
Large Visitor Globe
Search Blogs
Translate this page
Powered by
Microsoft® Translator
Tags
.NET
.NET Framework
Asp.Net
Biztalk
Configuration Manager
Exchange 2010
Hyper-V
Office 365
Operations Manager 2007 R2
Orchestrator 2012
SharePoint
SharePoint 2010
SharePoint 2010 troubleshooting
SharePoint 2013
SharePoint Foundation
SharePoint Troubleshooting
SQL Server
System Center 2012 Configuration Manager
Visual Studio
Windows 2008
Windows 7
Windows 8
Windows Azure
Windows Server 2012
Windows Server 8
Archive
Archives
December 2014
(1)
September 2014
(1)
June 2014
(5)
May 2014
(5)
April 2014
(3)
March 2014
(5)
February 2014
(3)
January 2014
(2)
December 2013
(7)
November 2013
(1)
October 2013
(2)
September 2013
(4)
August 2013
(2)
July 2013
(8)
June 2013
(10)
May 2013
(8)
April 2013
(6)
March 2013
(5)
February 2013
(12)
January 2013
(6)
December 2012
(4)
November 2012
(5)
October 2012
(5)
September 2012
(7)
August 2012
(3)
July 2012
(2)
June 2012
(3)
May 2012
(50)
April 2012
(10)
March 2012
(26)
February 2012
(8)
January 2012
(8)
December 2011
(12)
November 2011
(13)
October 2011
(7)
September 2011
(15)
August 2011
(12)
July 2011
(1)
June 2011
(6)
May 2011
(14)
April 2011
(5)
March 2011
(10)
February 2011
(11)
January 2011
(26)
December 2010
(38)
November 2010
(3)
Options
Home
About
Email Blog Author
Share this
RSS for posts
Atom
RSS for comments
Using Host Integration Server COBOL Import Wizard
TechNet Blogs
»
GD Bloggers
»
Using Host Integration Server COBOL Import Wizard
Using Host Integration Server COBOL Import Wizard
Mohamed M Malek
7 Jun 2014 4:33 AM
Comments
1
Likes
Introduction
Host Integration Server allows application integration with the Mainframe system using the Transaction Integrator (TI) component. The method to implement this integration involves building what is called a TI assembly. TI Assembly is actually built using the definition of the interface between the Mainframe program and the definition of the input and output COM areas. This involves in many cases reading large COBOL files and manually adding them to the TI library. The HIS development tools have added the import utility to simplify importing from COBOL copy book files but as we will see in this post this still have many challenges and I will provide in this post a systematic approach to facilitate importing a COBOL copy book file.
Discussion
COBOL copy books are the way Mainframe programs define the inputs and outputs. You can think of these as the signature of C# methods. These are mainly text files with specific structure. You can find more details about the definition of the structure of the COBOL copy book files
here
. A COBOL copy book file would look something like the below:
Now usually you would receive two COM area definitions like the above, one for the input COM area and another for the output (if they are different) from the Mainframe team. So the challenge here is how to use the HIS import utility to import these into one method in the TI assembly. Usually when you try to import the import wizard would crash and would not give you enough description of where was the problem so you would end up adding these things manually and that would be ok for smaller programs (like the above) but for more complex programs where you have more than 20-50 fields in input and outputs that would be a very tedious task. The section below would provide a simple approach and walkthrough on how to import these files and use the import wizard successfully every time.
Solution & Walkthrough
The HIS import wizard is very sensitive to the spaces and structure of the COBOL copy book file. So for example a following misalignment would fail the import.
So the first thing you need to do when dealing with COBOL copy books is to align them perfectly. To do this I recommend using a tool such as Notepad ++ as it understands this type of file and it actually shows you very helpful vertical guidelines.
So this simplify spotting misalignments.
The second thing you need to do is to merge the inputs and outputs COM area definitions in one COBOL copy book file while aligning the outputs as if it is part of the input and I will show you later how these would be separated. Just give it a name with the same program name while adding any suffix such as “-OUT” to it. Please also note that every line has to be terminated with a dot.
Now that you have created and saved the COBOL copy book file open Visual Studio and create a new client TI library in a TI project. Now import it as follows:
1-
2-
3-
4-
5-
6-
7-
8-
Now the method is created as follows:
1 Comments
Comments
Comments
hassan sayed issa20014
29 Jul 2014 9:21 AM
thank you
Your comment has been posted.
Close
Thank you, your comment requires moderation so it may take a while to appear.
Close
Leave a Comment
Name
Comment
Post