Welcome!

Open Source Cloud Authors: Elizabeth White, Pat Romanski, Yeshim Deniz, Liz McMillan, Zakia Bouachraoui

Related Topics: Open Source Cloud

Open Source Cloud: Article

Migration of Legacy Scientific and Engineering Applications

From mainframes to PCs with open source technologies

There is a market from which a history of computers began - a market of numerical simulations for scientific and engineering applications. Note that these applications usually deal with a high number of mathematical calculations that are impossible without a computer. Historically, this was what provoked the computer's invention. Also, the main purpose of software for this market is to provide results in a reasonable amount of time. Despite a long history, this market is alive and well, and it will be for the foreseeable future. Consider, for instance, the following fields of numerical simulations: steam turbines (which are core elements of most conventional and nuclear power plants that supply electricity), so-called "green energy" (wind, waves and solar energy) facilities, blood flow in the human body, elementary particles of which our universe consists, the universe itself, environmental issues (including pollution simulations and simulations of ecosystems), etc.

An important part of this market is the approximation of complex dependencies in order to speed up computations while maintaining accuracy (see for examples the books and articles listed in the resources section at the end of the article). Many applications for this market were developed for decades using mainframes and the programming languages available at the time. Many of these applications were written with various versions of Fortran.

Let us note that modern PCs (personal computers) are relatively cheap and provide us with the same computational power of the mainframes of a not-so-distant past. Therefore, if you're happy with your legacy mainframe scientific or engineering applications, it's a good time to make the transition from mainframes to PCs to save money on mainframe time cost.

There are a good many commercial Fortran compilers for PCs (consider Intel Fortran compiler). You may want to measure the performance of a compiler by benchmarks that suit your specific needs. (More information on benchmarks can be found in my article in JDJ, Vol. 10, issue 5, 2005, listed in the resources section or online at http://jdj.sys-con.com/read/83099.htm.) However, to save money, one should consider using open source compilers. It is well known that GCC (GNU Compiler Collection) compilers (including G77 Fortran) are mature and have reasonable performance. Besides, if you use a G77, the number of changes needed in your mainframe Fortran code is relatively small. On the other hand, there are a number of free editors that can be used for convenient editing of the source code. So you may want to implement a technology that will combine these editors and G77 in a sort of self-made IDE (integrated development environment).

Operating System for a PC
Let's face it, most modern PCs come with Windows pre-installed. Most manufacturers of peripheral devices (printers, external HDDs, etc.) provide drivers for Windows XP. If you bought your PC with Windows XP pre-installed, you may not want to waste time installing another operating system (say various Linux or FreeBSD distributions). However, GCC works really well on Linux. Here are a few ways to solve this problem:

  • You may want to use virtualization. (See my articles about using Windows XP/Linux virtualization for compilations: from LinuxWorld Magazine, Vol. 4, issue 5, 2006, available online at http://jdj.sys-con.com/read/219966.htm, and from Enterprise Open Source Magaine, Vol. 4, issue 8, 2006.) Virtualization is great, however, it may not fit your application needs in terms of performance (some computer power is needed to support virtualization).
  • You may use CygWin (emulation of Unix environment) under Windows XP. How to create self-made IDEs using free open source technologies with CygWin under Windows XP will be described later in this article as a part of the migration from mainframes to PCs.
Source Code Migration from Mainframes to PCs
There is a cheap tool that allows great simplification of the migration in question - Quick3270 - most likely it's already used in your organization. If it is not used, I strongly recommend buying and implementing it. The tool is available from www.dn-computing.com/ where you can find information on pricing, etc. The migration under Quick3270 is a breeze. All you need to do is the following:
  • Split your ISPF screen (if your are unfamiliar with ISPF, TSO and other mainframe stuff, many more resources can be found at www.ibm.com) using a corresponding command (most likely it will be F2). You may want to double-check with mainframe developers/administrators from your organization to be sure of the command.
  • In one part of the split screen, go to "Command" TSO option (say it will be 7). Again, check the actual number for the option described above.
  • From this part of the screen, select appropriate options for file transformation from the Quick3270 menu. When the "File Transfer" dialog appears, put the fully qualified name of a member of your source code library in single quotes. For example, ÔMYLEVEL1NAME.MYLEVEL2NAME.MYLIBRARYNAME(MYFTNMEMBER)'. Of course, in real life, you should use real names. You may want to go to the corresponding library within the second part of the split screen, copy said name into the clipboard, and paste it in single quotes to save yourself some typing.
  • Put the needed file name on your PC under "PC file name" without quotes - for example, C:\FromMainframe\program1.f.
  • Hit "Receive File" button.
That's it. Now, any needed file will be transferred from the mainframe to the PC.

CygWin Installation
The process is described in numerous Internet resources. However, there are several things not articulated in known sources that could save you a lot of time if properly implemented:

  • For readers in the USA, a reasonable choice of CygWin mirrors/ftp sites is as follows:
    http://cygwin.elite-systems.org/ for a mirror and ftp://mirrors.kernel.org for an ftp site.
  • When considering what to install, it would be smart to keep in mind that these days HDD drives are cheap (less then $1 per Gigabyte at the time of writing). So if you care about the completeness of your CygWin distribution - and saving money by eliminating unnecessary findings of missing CygWin parts - you may want to install the whole thing. Installation of the whole CygWin is very simple. There is a figure that resembles a circle with two arrows, located next to every category within the "CygWin setup select - packages" window of the CygWin setup program. Clicking on this figure, which is located near "All," will provide the needed installation. On average (the specific time will depend on your connection and PC), it takes about an hour to complete the installation.
  • After the installation, you will most likely need the following CygWin related shortcuts on your desktop: CygWin shortcut, start X server shortcut (these two are likely to be provided by the setup program), and X term shortcut. To place the X term shortcut on a desktop, go to Start | All programs | GygWin X, right-click on the X term icon, and select Send to | Desktop. Note that the X server and X terminal from CygWin will not be used further in this article. However, you may find them useful for your other development needs.
Making Your Own IDE with G77 and Editors Without Additional Investments
There are many free and/or open source editors that are suited for source code editing. However, you may find it convenient to use Crimson, available for free from http://www.crimsoneditor.com. Crimson has support for Fortran syntax highlighting, and, as you will see in this section, it can be used as part of a self-made IDE. Also, if VS.Net 2003 or 2005 is a part of the standard PC software image in your organization (i.e., if there is no need for additional investments in VS.Net 2005 for the migration in question), why not use its highly customizable editor? Please see my article from Enterprise Open Source Magazine (Vol. 4, issue 8, 2006) for an analysis on how a typical IDE works. With help from the article as well as the aforementioned editors, you'll be able to build your own IDE.

The program in question will allow you to call G77 within the CygWin environment right from the editor (likewise you can call a native or external compiler from the IDE), and see the results within Notepad (likewise you can see the results in the designated IDE area).


More Stories By Anatoly Krivitsky

Anatoly Krivitsky has a PhD in computer science and has more than 24 years of working experience in the IT field. He's the author of 20 published papers and books and five patents. For more information, please visit http://www.myjavaserver.com/~akrivitsky/index.html.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
Founded in 2000, Chetu Inc. is a global provider of customized software development solutions and IT staff augmentation services for software technology providers. By providing clients with unparalleled niche technology expertise and industry experience, Chetu has become the premiere long-term, back-end software development partner for start-ups, SMBs, and Fortune 500 companies. Chetu is headquartered in Plantation, Florida, with thirteen offices throughout the U.S. and abroad.
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
SYS-CON Events announced today that DatacenterDynamics has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY. DatacenterDynamics is a brand of DCD Group, a global B2B media and publishing company that develops products to help senior professionals in the world's most ICT dependent organizations make risk-based infrastructure and capacity decisions.
Nicolas Fierro is CEO of MIMIR Blockchain Solutions. He is a programmer, technologist, and operations dev who has worked with Ethereum and blockchain since 2014. His knowledge in blockchain dates to when he performed dev ops services to the Ethereum Foundation as one the privileged few developers to work with the original core team in Switzerland.
Cloud-enabled transformation has evolved from cost saving measure to business innovation strategy -- one that combines the cloud with cognitive capabilities to drive market disruption. Learn how you can achieve the insight and agility you need to gain a competitive advantage. Industry-acclaimed CTO and cloud expert, Shankar Kalyana presents. Only the most exceptional IBMers are appointed with the rare distinction of IBM Fellow, the highest technical honor in the company. Shankar has also receive...
Headquartered in Plainsboro, NJ, Synametrics Technologies has provided IT professionals and computer systems developers since 1997. Based on the success of their initial product offerings (WinSQL and DeltaCopy), the company continues to create and hone innovative products that help its customers get more from their computer applications, databases and infrastructure. To date, over one million users around the world have chosen Synametrics solutions to help power their accelerated business or per...
DXWorldEXPO LLC announced today that ICOHOLDER named "Media Sponsor" of Miami Blockchain Event by FinTechEXPO. ICOHOLDER gives detailed information and help the community to invest in the trusty projects. Miami Blockchain Event by FinTechEXPO has opened its Call for Papers. The two-day event will present 20 top Blockchain experts. All speaking inquiries which covers the following information can be submitted by email to [email protected] Miami Blockchain Event by FinTechEXPOalso offers sp...
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
@DevOpsSummit at Cloud Expo, taking place November 12-13 in New York City, NY, is co-located with 22nd international CloudEXPO | first international DXWorldEXPO and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time t...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things'). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing. IoT is not about the devices, its about the data consumed and generated. The devices are tools, mechanisms, conduits. This paper discusses the considerations when dealing with the...