COBOL Sample Program. Sample Cobol Program on Mainframe Screen. Sample Cobol Program on Mainframe Screen. This program sum up the values of WS B WS C data items and store the result. This algorithm implementation is a part of my cryptography implementations project. The full project, along with licensing information and more detail, is hosted on. Programming Examples C Examples Java Examples Html Examples Css Styles C Examples C Examples VBasic Examples Php Scripting Examples Asp Scripting. Need programming help Weve got your covered. Discussion. Sample C Program Source CodeC and C Source Code Snippets Welcome to Cprogramming. Peruse the archives or add your own snippets for others to use COBOL Tutorial COBOL Programming COBOL Sample Program, simple cobol program with explanation, COBOL program structure, area A, area B, divisions, procedure. WS A data item and display the all data item values to the spool. COBOL compiler accepts the source code in a standard format. There are 8. 0. character positions on each line of source code. Sequence Number Optional use these positions to give sequence number. Indicator Use for commenting the line. Other values can be used in. Area A Area B Contains COBOL source code. Position 8 to 7. 2. Identification COBOL compiler will ignore the data in these positions. There are four Divisions in every COBOL programs. IDENTIFICATION DIVISION. This division contains the information to identify the program. There are. seven paragraph headers in this division. PROGRAM ID is mandatory, rest. ENVIRONMENT DIVISION. Environment Division describe the physical characteristics of input ouput. The Environment Division consists of two. Configuration Section Input Output. All data items used in the program must be defined in Data Division. There. are 3 important sections in this divisions. FILE SECTION, WORKING STORAGE. SECTION LINKAGE SECTION. File From Sftp Server Using Colons. PROCEDURE DIVISION. This is the place where, programmer needs to implement the program logic.