Getting started: In 3 steps to Cobol development with gradle

1. Install

To use the plugin, you need GNUCobol and Gradle.

On Ubuntu 18.10 and higher:

sudo apt install gradle gnucobol

On Arch (via yaourt):

yaourt gnu-cobol gradle

 

2. Configure your project

Create the project structure:

.
├── build.gradle  (empty)
└── settings.gradle  (empty)

Import the plugin from the provided repo (in your settings.gradle):

pluginManagement {
	repositories {
		maven {
			url 'https://sebastianruziczka.de/repo/mvn/'
		}
	}
}

Add to your build.gradle:

plugins {
     id 'de.sebastianruziczka.Cobol' version 'latest'
}

3. Run HELLOWORLD.cbl

Insert HelloWorld in src/main/cobol and run it with the single command:

gradle helloWorld

Running

Run your application with

gradle runDebug

or build an complete executable and run it with:

gradle runExecutable

Additional configuration

A minimal configuration for more than one file cobol source file:

cobol {
     srcMain = 'HelloWorld' // Path to your main file in src/main/cobol without the file extension .cbl
}

 

Additional information

 

Sebastian Ruziczka: Continuous Integration of Cobol software at the example of “Bank of Cobol” – Can open source frameworks compete with commercial software products?

Researcher: Sebastian Ruziczka

Start date: 29.03.2018

introduction

In modern software development, continuous integration is an integral part of the development process. For example, a central source code translation, software tests or the calculation of software metrics are used for long-term quality assurance.

The Cobol programming language is one of the oldest actively used high-level programming languages at the age of 60. Especially in systemically relevant areas, Cobol forms the foundation for banks and insurance companies. However, the programs currently in use have hardly any adaptations to modern software development due to their historical conception. In particular, the long lifetime of the Cobol source code as well as the criticality of the application have great potential for continuous integration.

Due to Cobol’s different target platforms, commercial and free tools for individual sub-functions of software integration have emerged. However, there is still no integration process with open source software. In order to continue to position the Cobol programming language in a future-proof way, the Cobol universe should be expanded to include an open source option for continuous software integration.

Link to the github repository.

Andreas Siegling: Design and Installation of a Mainframe Emulator

Researcher: Andreas Siegling

Start date: 01.10.2017

abstract

Mainframes are computers, which particularly qualify for efficient and reliable data processing. They are deployed especially in financial institutes, insurance companies and enterprises, in which a lot of transactions are handled. Mainframes excel in their high data throughput and their reliability, which is achieved among others by redundant hardware. At the moment there is a shortage of professionals, which can administrate and program mainframes, since research and teaching in the area of mainframes decreased in the last decades. One of the reasons for this is the fact that universities often don’t have the means to operate a mainframe. With the System z Development and Test Environment (zD&T) IBM develops an application, which emulates the IBM’s Mainframe architecture on a x86-computer. With this one can run IBM’s mainframe operating system z/OS on a x86-computer. Thus zD&T represents an alternative to a physical mainframe to do research and teaching in the environment of mainframes. As part of this thesis zD&T is installed on the chair’s servers and the process of the installation is documented. Subsequently a course is designed, in which initially the installation and configuration of zD&T and z/OS is shown, and afterwards different basic software components of mainframe programming are introduced.

Daniel Mulzer: Interaction between Mainframe Applications and Mobile Devices – An Online Course

Researcher: Daniel Mulzer

Start date: 15.02.2018

introduction

Most people still have prejudices that mainframes are “dinosaurs”, “obsolete technologies” or”becoming extinct”. But these are just myths, as millions of transactions are still being carried outon mainframes in the banking, insurance and airline sectors every day. Even today, mostapplications running on Mainframes are programmed in Cobol.

Now, the s390 platform is officially part of the Linux kernel and as result Linux distributions aresupported natively. In addition, the Java platform is officially supported and the JavaVM ismodified to ensure the full hardware support of the applications. Although the mainframearchitecture has been supporting current technologies for many years, the market still lacks youngtalent.

For attracting young talent, the topicality of the mainframe technologies must be explained andillustrated. As smartphones are constant and essential companions in daily life nowadays foreveryone it is interesting to know what happens behind the scenes. When using an app on asmartphone, e.g. flight reservation or a bank transfer, the data is most likely processed by amainframe or even a COBOL program in the background. But how do smartphones and legacyapplications interact with each other?

In my master’s thesis, the possibility of connecting smartphone apps to Cobol applications will beresearched and prototypically implemented. The results will be used for an online course to attractstudent interest in the enterprise computing space.

Sebastian Ruziczka

 

Latest Posts