|
|
| |
References to COBOL program and source code examples, including COBOL code compiled with Micro Focus, Fujitsu, Acucorp, IBM, Liant RM, LegacyJ, and CA-Realia COBOL compilers.
The samples cover client/server, database, Java, JCL, COBOL .Net, XML, object oriented, transaction processing, and other COBOL programming techniques: |
| |
|
|
|
| > |
Future Date Calculation
This is a MicroFocus COBOL program example which calculates a date in the future, based on business days, not on calendar days. |
[ Go to Top of Page ] |
|
|
| > |
Acucorp
This is a collection of COBOL program examples that help illustrate certain concepts integral to developing with Acucobol. |
| > |
AS/400 & iSeries Professionals
These are iSeries COBOL programming tips and techniques covering APIs, CGI COBOL, XML COBOL, and other COBOL code examples. |
| > |
ASP Alliance.com
This example provides COBOL .NET code that accesses SQL Server and binds the results of a query to a DataGrid using Fujitsu's Net COBOL for .NET. |
| > |
Bristol Community College, Priscilla Grocer
These sample programs cover COBOL language elements, two and three files matching, random and sequential files, bubble sort, relative files, screen processing, variable length records, working with dates, object oriented programs, and data structures. |
| > |
C# Corner
Here you will find various Cobol .NET related source code examples. |
| > |
Capitalware
Several COBOL code samples are provided for the Fujitsu COBOL compiler and IBM MQSeries. |
| > |
COBOL Bible
These are notes that have been obtained from various sources on how to write the syntax of COBOL programs. |
| > |
COBOL Center
Here are examples of date routines, free-form number routine, loan amount/payment, convert numeric dollars, edit and reverse name, and table sort. |
| > |
COBOL8M
Here are examples of integrating operating system functions into MicroFocus Net Express. |
| > |
Deskware
Each program demonstrates some feature of CobolScript. |
| > |
Davar Web Site
Here are examples of how to output the current date and time as DB2 timestamp to a file and how to edit input of an unsigned integer number. |
| > |
DevNewz
This example shows how to use OLEDB to access other databases that are .NET compliant. |
| > |
Eastern Kentucky University
This sample calculates employee payroll information given the tax deduction table for the employee. |
| > |
eServer Magazine
Here is an iSeries COBOL example of processing XML documents with COBOL, along with other iSeries examples. |
| > |
Free Programming Resources
Here are links to free COBOL resources and COBOL code. |
| > |
Fujitsu Software
This is a collection of sample programs using Fujitsu COBOL and NetCOBOL for Windows. |
| > |
GUI Innovations
This example demonstrates TCP/IP server for the HPe3000 server. |
| > |
HostBridge Technology
Here is a collection of examples that have been developed to make it easy for a COBOL CICS program to send an outbound TCP/IP request (and optionally wait for a response). |
| > |
hp
This is a simple CGI example using cobol/ix to call the COBOL CGI with methods get and post. |
| > |
IBM
These sample programs demonstrate a condition handler that checks for either a data exception (SOC7) or a divide by zero (SOC9). |
| > |
IT Doctors
This is a sample of VS COBOL code. |
| > |
KernerlThread
This sample was developed with the Open COBOL compiler. |
| > |
Lawrence Truett
This site contains examples that demonstrate various COBOL syntax. |
| > |
LegacyJ
This is an accumulation of samples that demonstrate features of the LegacyJ COBOL development environment. |
| > |
Microsoft
This sample demonstrates a mixed-language (Microsoft Visual Basic, COBOL, and SQL) application that can be used to build full-featured client-server applications. |
| > |
Murach
Here are downloads of the COBOL code of the programs in the Murach's Structured COBOL book. |
| > |
Netshare400
Here are several AS/400 COBOL code examples that demonstrate various COBOL programming techniques such as how to add a timestamp in cols 73-80, convert line to uppercase, convert line to lowercase, and more. |
| > |
Netshare400, Code by Richard (Rick) Silvers
These are AS/400-iSeries COBOL code examples that include COBOL driver program, convert line to upper case, remove comment line, issue AS/400 commands, start Windows applications, and many more AS/400-iSeries COBOL examples |
| > |
Norcom
This Norcom sample program will display and handle user interaction with any type of GUI ScreenIO panel (including a property sheet or a wizard), regardless of the type or number of controls it contains. |
| > |
Penn State Lehigh Valley
This example is for beginner's. |
| > |
Saint Xavier University
Here are several examples for beginners on general COBOL programming techniques and syntax, including hello world, sort, table lookup programs, and more. |
| > |
SimoTime
This is a suite of samples that were written using the IBM VS COBOL II or Micro Focus Net Express COBOL, covering Java, bit manipulation, data access, and more. |
| > |
Softech Solutions
This is an example of a COBOL II bubble sort. |
| > |
Sun Valley Systems
Here are samples that demonstrate date routines, free-form extraction, loan amount calculation, money to text, validate/reverse name, and table sort. |
| > |
Sybase
Here are COBOL SQL sample programs that demonstrate features such as how to code a batch of INSERT requests, how to code a DB2 input pipe, how to code a transfer request, how to code keyword input, how to embed SQL in COBOL programs, and more. |
| > |
RPV Software
Examples are provided that show you how to prepare reports using Fujitsu Power COBOL, Liant RM COBOL, and RPV printing system. |
| > |
Thane Hubbell
This is a list of sample programs compiled with CA-Realia, COBOL Sp2, Fujitsu COBOL, and Micro Focus COBOL, covering making code look pretty, converting a line sequential file to a fixed length file, developing COBOL programs that interface with the Windows Winsock API, and turning numbers into english text. |
| > |
University of Limerick
This is an accumulation of examples for beginner's that demonstrate selection and iteration, sequential files, sorting and merging, direct access files, calling sub-programs, string handling, the COBOL report writer, and COBOL tables. |
| > |
University of Michigan - Dearborn
This sample COBOL code for beginners presents a hello word program and accept_num program. |
| > |
University of Ulster
This is an example of interactive COBOL programming. |
| > |
VyomWorld.com
General COBOL programs are provided that include COBOL scripts and code snippets. |
| > |
zingCOBOL
This sample COBOL code is for beginner's. |
[ Go to Top of Page ] |
|
|
| > |
CGI Example Using HP COBOL/ix
This is a simple CGI example using cobol/ix to call the COBOL CGI with methods get and post. |
| > |
CGI Examples Using iSeries COBOL
Here are a number of sample COBOL CGI programs for the iSeries COBOL community. |
| > |
MQSeries for MVS/ESA - Message Handler Sample
Here is COBOL sample code for a message handling application for MQSeries for MVS/ESA. |
| > |
TCP/IP Server
This is a COBOL sample TCP/IP server for the HPe3000 server. |
| > |
TCP/IP Sockets, MVS - Datagram Socket COBOL Server Program
Here you will find basic TCP/IP socket programming information for MVS COBOL program developers who plan to use the socket programming interfaces of IBM TCP/IP for MVS. |
| > |
Visual Basic/COBOL/SQL Sample Application
The COBOL sample demonstrates a mixed-language (Microsoft Visual Basic, COBOL, and SQL)
application that can be used to build full-featured client-server applications. |
| > |
Web Services
This demonstrates the use of a Web Service with the client developed using NETCOBOL for .NET. |
| > |
WebSphere MQ COBOL Code Samples
The sample COBOL programs demonstrate how to send a request message, wait for a reply message, process a request message, and send a reply message. Samples are included from the MQSeries toolkit. |
| > |
Windows Winsock API
These are examples of COBOL Winsock client and server programs, and should be sufficient to assist you in developing COBOL programs that inteface with the Windows Winsock API. |
[ Go to Top of Page ] |
|
|
| > |
ADO.NET/ COBOL/Stored Procedures
This COBOL sample provides an example of how to access a stored procedure to perform a specific task such as create a new table, retrieve data from one or more tables, update one or more tables or perform many other tasks. |
| > |
DB2/SQL/COBOL Samples
Several IBM COBOL and MicroFocus COBOL samples that include COBOL DB2 API sample programs with no embedded SQL, COBOL DB2 API embedded SQL sample programs, and COBOL SQL sample programs with no DB2 APIs. |
| > |
DB2/SQL/COBOL for AS/400 Example
The SQL COBOL example demonstrates how to code SQL statements using AS400 COBOL. |
| > |
OLEDB In ADO.NET With COBOL Example
The COBOL example shows how to use OLEDB to access other databases that are .NET compliant. |
| > |
Sybase COBOL SQL Samples
The COBOL sample programs demonstrate features such as how to code a batch of INSERT requests, how to code a DB2 Input Pipe, how to code a transfer request, how to code keyword input, how to embed SQL in COBOL programs, and more. |
[ Go to Top of Page ] |
|
|
| > |
ASCII to EBCDIC
The is an RM COBOL sample that converts an ASCII data file TO EBCDIC. |
| > |
Comma delimited, QSAM, and VSAM Files
Here are several COBOL data access sample programs that cover handling comma delimited, QSAM, and VSAM files. |
| > |
Displaying Record-Lock Messages
This iSeries COBOL subroutine displays record-lock messages. |
| > |
EBCDIC to ASCII
This COBOL program converts EBCDIC-sequential to ASCII-indexed. |
| > |
Index Sequential Example
This RM COBOL sample demonstrates index file handling. |
| > |
Line Sequential File Example
This is a simple COBOL example of line sequential file handling. |
| > |
Line Sequential File to a Fixed Length File
This prorgam converts a line sequential file to a fixed length file - so MicroFocus users can change the select from line sequential to record sequential and process files with characters which have a hex value X"20". |
| > |
Read and IFS File
This is an iSeries Cobol example showing how to read lines from an IFS file. |
| > |
Read/Write to a Device
This RM COBOL example shows how to read and write to a device. |
[ Go to Top of Page ] |
|
|
| > |
Acucorp Sample Programs
This is a collection of sample programs that help illustrate certain concepts integral to developing with ACUCOBOL-85 and ACUCOBOL-GT. |
| > |
Bubble Sort
This is an example of a Cobol II bubble sort. |
| > |
CA-Realia, COBOL Sp2, Fujitsu COBOL, and Micro Focus
This is a list of COBOL sample programs that makes code look pretty, converts a line sequential file to a fixed length file, interfaces with the Windows Winsock API, and turns numbers into english text. |
| > |
COBOL Example Programs
This is a list of COBOL examples that demonstrate date routines, get free-form number routine, table sorts, and more. |
| > |
COBOL Example Programs
The examples here demostrate add line numbers, refresh line numbers, table processing, prime numbers calculation, and creating and reading indexed files. |
| > |
COBOL Example Programs
These sample programs illustrate date routines, free-form extraction, loan amount calculation, money to text, validate/reverse name, and table sort. |
| > |
COBOL Example for Beginner's
This example is for beginner's. |
| > |
COBOL Programs for Beginner's
Here are several examples for beginner's on general COBOL programming techniques and COBOL syntax, including hello world, sort, table lookup programs, and more. |
| > |
COBOL Programs for Beginner's
Here is a large number of examples for beginner's. |
| > |
COBOL Programs for Beginner's
Here are sample COBOL programs that include hello word, accept number, and sales file processing. |
| > |
COBOL Programs for Beginner's
This COBOL example calculates employee payroll information given the tax deduction table for the employee. |
| > |
COBOL Programs for Beginner's
Here is collection of sample code for beginner's. |
| > |
COBOL Reference, Syntax, and Examples
The COBOL samples here cover COBOL syntax for current-date function, evaluate statement, if and end-iIf statement, initialize statement, in-line perform, inspect statement, and reference modification |
| > |
COBOL & RPV Examples
These examples show how to prepare reports using Fujitsu Power COBOL, Liant RM COBOL, and RPV printing system. |
| > |
COBOL Sample Programs
These sample programs cover COBOL language elements, two and three files matching, random and sequential files, bubble sort, relative files, screen processing, variable length records, working with dates, object oriented programs, and data structures. |
| > |
CobolScript Sample Applications
Each of the programs demonstrates some feature of CobolScript. |
| > |
Condition Handler
This sample demonstrates a condition handler that checks for either a data exception (SOC7) or a divide by zero (SOC9). |
| > |
Dateout COBOL II Procedure
This program outputs current date and time as DB2 timestamp to a file. |
| > |
Editint COBOL Subroutine
This subroutine determines validity of input unsigned integer number and edits it in its place. |
| > |
Fujitsu Sample Programs
These samples were tested with Version 4 & 5 of the Fujitsu COBOL product set. |
| > |
How to Write the Syntax of COBOL Programs
These are notes that have been obtained from various sources on how to write the syntax of COBOL programs. |
| > |
General COBOL Sample Programs
This is a collection of COBOL examples that show sequential file program, balance sheet printing, calculating yearly depreciation, computing interest, and more |
| > |
Interactive Programming
This program provides an example of interactive programming. |
| > |
iSeries COBOL Sample Code
This is a collection of AS/400 COBOL code examples that demonstrate various techniques, such as add Timestamp in cols 73-80, convert line to uppercase, convert line to lowercase, add comment line, and remove comment line. |
| > |
LegacyJ Samples and Demos
This is a collection of LegacyJ COBOL samples and demos. |
| > |
Micro Focus Sample Programs
Here are examples of integrating operating system functions into Micro Focus Net Express. |
| > |
Source Entry Utility (SEU) Extensions
These examples show how to extend the functionality of SEU with your own line commands. |
| > |
Structured COBOL
This is the source code from Murach's Structured COBOL book. |
| > |
Towers of Hanoi
This program was developed with the Open COBOL compiler. |
| > |
VS COBOL Code
This is a typical example of the type of COBOL programs in many mature installations. |
[ Go to Top of Page ] |
|
|
| > |
Graphical User Interface (GUI) Samples.
The Acucobol sample programs demonstrate Acucorp's products GUI features. |
| > |
Graphics Sample
This LegacyJ, PERCobol sample demonstrates a variety of graphical controls and provides the COBOL source to illustrate how to code several of the graphical program elements. |
| > |
GUI Sample
This LegacyJ, PERCobol sample displays a GUI using Graphical Screen Section syntax from within either an application or applet. |
| > |
GUI ScreenIO
This Norcom COBOL sample will display and handle user interaction with any type of GUI ScreenIO panel (including a property sheet or a wizard), regardless of the type or number of controls it contains. |
| > |
Register
This LegacyJ program sampleillustrates a COBOL servlet that accepts customer data and stores the results in a COBOL file. This example also illustrates dynamic html. |
[ Go to Top of Page ] |
|
|
| > |
iSeries(AS400) Sample COBOL Programs
Several sample iseries(as400) COBOL programs. |
[ Go to Top of Page ] |
|
|
| > |
CallJava
This LegacyJ program sample illustrates a COBOL program calling java. |
| > |
COBOL / Java Translation
It shows the equivalent COBOL statements and data types in Java. |
| > |
Using Java and COBOL Together
It introduces the different ways that Java and COBOL applications can call each other. |
[ Go to Top of Page ] |
|
|
| > |
Introduction to JCL Objectives - University of Georgia
There are COBOL JCL examples of programs with instream DD statements, DISP parameters, programs with DD statements, and output JCL statement. |
| > |
COBOL JCL Examples - The University of Arizona Center for Computing & Information Technology
This includes various COBOL JCL examples and JCL tricks. |
| > |
COBOL JCL Procedure Tips - TechTarget
Here are numerous mainframe COBOL JCL 390 tips. |
| > |
Job Control Language (JCL) - Wikipedia
This shows an example of COBOL JCL statements necessary to copy an existing dataset to a new dataset. |
| > |
Job Control Language (JCL) Standard for MVS & JES2 - University of California, Santa Barbara
There are various COBOL JCL examples and illustrations. |
| > |
Just Enough JCL Tutorial to be dangerous
The purpose of this booklet is to get you started with COBOL JCL when there is no other way - you don't have time to go to a class, don't want to buy a complete book on it and try to find the things you need to know. |
| > |
MVS JCL - Louisiana Tech University
This is an example of print hello world on job output |
| > |
OS/390 and z/OS JCL - Mike Murach & Associates
It contains the COBOL JCL coding segments and job streams that are used as examples in the book. |
| > |
Sample COBOL JCL - Mainframes.com
Here are various COBOL JCL samples. |
| > |
Sample COBOL JCL Coding - IBM MAINFRAMES.com
It includes sample COBOL JCL codings that are useful for students and training centers. |
| > |
The COBOL JCL Connection, Managing JCL, Procedures and PDS's - SimoTime Enterprises
The JCL Connection provides a suite of sample programs and documentation that use the mainframe Job Control Language (JCL). |
[ Go to Top of Page ] |
|
|
| > |
ASP.NET/COBOL.NET Database Access Example
This Fujitsu example provides COBOL .NET code that accesses SQL Server and binds the results of a query to a DataGrid using NetCOBOL for .NET. |
| > |
COBOL and .Net Interoperability
This Micro Focus COBOL .NET example illustrates how you can use Microsoft's .NET Framework to develop applications that use COBOL business logic. |
| > |
COBOL and .Net Samples
Here you will find various Fujitsu COBOL .NET source code samples using NetCOBOL for .NET. |
[ Go to Top of Page ] |
|
|
| > |
Object Orientation for COBOL
This OO COBOL sample can be registered as a COM server and called by client programs written in COBOL or other languages, including ASP.NET or VB.NET or C#. |
[ Go to Top of Page ] |
|
|
| > |
CICS COBOL Program Examples
This references the source code to 12 complete COBOL CICS programs in the Murach's CICS for the COBOL Programmer. |
| > |
CICS COBOL Sample Socket Programs
This is a collection of CICS COBOL sample programs that have been developed to make it easy for a CICS COBOL program to send an outbound TCP/IP request (and optionally wait a response). |
| > |
CICS COBOL TCP/IP Socket Interface
Here you will find a description of the TCP/IP for MVS: Socket Interface for CICS. |
| > |
COBOL II TP Sample Program
This is an example of a COBOL II Program. It includes a chart of the program structure and sample for a COBOL II TP that runs on the HP 3000. |
| > |
COM Transaction Integrator (COMTI)
The COBOL CICS sample programs are for application integration using COMTI (COM Transaction Integrator) for CICS and IMS included with the Host Integration Server 2000 Software Development Kit. |
[ Go to Top of Page ] |
|
|
| > |
Processing COBOL XML Documents
Here are code samples of processing COBOL XML documents with iSeries COBOL. |
|
|
[ Go to Top of Page ]
|