Skip to content

Instantly share code, notes, and snippets.

View sandeep-sparrow's full-sized avatar
🏠
Working from home

Sandeep prajapati sandeep-sparrow

🏠
Working from home
View GitHub Profile
@sandeep-sparrow
sandeep-sparrow / MASTER.asm
Last active October 18, 2024 13:14
Report Generation using COBOL program
11 23 12345 CAREER TRAINING CTR 1234567 2222222 00000100
11 23 22222 HOMELITE TEXTRON CO 3454500 0000000 00000200
11 33 55555 POLOT LIFE INS. CO. 1000000 0100000 00000300
12 33 00111 DAUPHIN DEPOSIT BANK 1409900 1993000 00000400
12 33 12121 GENERAL SERVICES CO. 1144400 1104956 00000500
12 33 24680 INFO MANGEMENT CO. 1748145 1389247 00000600
12 33 14680 ZEN TECHNOLOGIES CO. 748143 89347 00000700
13 41 14681 TATA COFFEE PRIVATE. 2748345 2183247 00000800
13 42 14682 TATA CONSUMER CO. 5748145 5143247 00000900
14 43 14683 TATA CHEMICAL LTD. 4344345 4183447 00001000
@sandeep-sparrow
sandeep-sparrow / 1LTABLE.cbl
Last active September 30, 2020 07:00
passing input data in one level COBOL table with the help of subscripts
******************************************************************
* Author: SANDEEP
* Date: 10-06-2020
* Purpose: TO UNDERSTAND ONE LEVEL TABLE AND SUBSCRIPTS
* Tectonics: COBC
******************************************************************
IDENTIFICATION DIVISION.
PROGRAM-ID. CTABLE.
*
ENVIRONMENT DIVISION.
@sandeep-sparrow
sandeep-sparrow / DB2PGM3.cbl
Last active June 27, 2020 13:49
A simple COBOL-DB2 Program which validates value from CUSTOMER table and Fetch Invoice details from INVOICE table to generate a sales report.
******************************************************************
* Author: SANDEEP PRAJAPATI
* Date: 20-06-2020
* Purpose: INTERACTIVE COBOL DB2 PROGRAM
******************************************************************
IDENTIFICATION DIVISION.
*
PROGRAM-ID. DB2PGM3.
*
ENVIRONMENT DIVISION.
@sandeep-sparrow
sandeep-sparrow / DB2PGM6.cbl
Created June 27, 2020 13:54
This COBOL program demonstrate a simple application which performs DB2 Database changes, as per transaction code from VSAM file. (Thanks Murach's & Uday Sir aka Captain)
******************************************************************
* Author: SANDEEP PRAJAPATI
* Date: 23-06-2020
* Purpose: INTERACTIVE COBOL DB2 PROGRAM
******************************************************************
IDENTIFICATION DIVISION.
*
PROGRAM-ID. DB2PGM6.
*
ENVIRONMENT DIVISION.
@sandeep-sparrow
sandeep-sparrow / DB2PGM8.cbl
Last active March 5, 2023 03:51
COBOL program to Generate CUSTOMER-INVOICE Report using DB2 and JCL - Thanks to Murach's & Captain Uday Prasad
******************************************************************
* Author: SANDEEP PRAJAPATI *
* Date: 03-07-2020 *
* Purpose: REPORT GENERATION USING COBOL PROGRAM. *
* : THIS PROGRAM READS A CUSTOMER TABLE *
* : WHICH WRITES A REPORT FORMAT *
******************************************************************
IDENTIFICATION DIVISION.
*
PROGRAM-ID. DB2PGM8.
@sandeep-sparrow
sandeep-sparrow / HELLO.cbl
Created August 21, 2020 14:34
A simple COBOL-CICS which sends and receives data from the CICS region
******************************************************************
      * AUTHOR:  SANDEEP                                               *
      * PROGRAM: HELLO                                                 *
      * DESCRIPTION: THIS MODULE IS RECEIVE AND SENDS DATA TO CICS     *
      *              REGION                                            *
      * DATE: 05-08-2020                                               *
      ******************************************************************
       IDENTIFICATION DIVISION.
       PROGRAM-ID. HELLO.
      *
@sandeep-sparrow
sandeep-sparrow / CBLMERG.cbl
Last active April 22, 2021 23:30
COBOL PROGRAM USING INTERNAL SORT TO MERGE TWO INPUT FILE IN OUTPUT FILE
IDENTIFICATION DIVISION.
PROGRAM-ID. CBLMERG.
*
******************************************************************
* AUTHOR: SANDEEP
* DESC : COBOL PROGRAM USING INTERNAL SORT TO MERGE
* : TWO INPUT FILE IN OUTPUT FILE.
******************************************************************
ENVIRONMENT DIVISION.
*
@sandeep-sparrow
sandeep-sparrow / CBL1DTBL.cbl
Created September 23, 2020 17:14
COBOL program loads data in 1-D table from External File.
IDENTIFICATION DIVISION.
PROGRAM-ID. CBL1DTBL.
AUTHOR. SANDEEP R PRAJAPATI.
******************************************************************
*DESCRIPTION: COBOL PROGRAM LOADS DATA INTO EMPLOYEE TABLE *
* USING EXTERNAL FILE *
*DATE : 23-09-2020 *
******************************************************************
*
ENVIRONMENT DIVISION.
@sandeep-sparrow
sandeep-sparrow / CBLV1TBL.cbl
Last active September 30, 2020 06:58
V1 computes no of occurs for dynamic table values.
IDENTIFICATION DIVISION.
PROGRAM-ID. CBLV1TBL.
AUTHOR. SANDEEP R PRAJAPATI.
******************************************************************
*DESCRIPTION: COBOL PROGRAM LOADS DATA INTO EMPLOYEE TABLE *
* USING EXTERNAL FILE *
*DATE : 24-09-2020 *
******************************************************************
*
ENVIRONMENT DIVISION.
@sandeep-sparrow
sandeep-sparrow / EMP1PROJ.asm
Created September 28, 2020 11:21
Using One-Dimensional Table to load records from external file.
A111BILLY BIGGS NCPROGRAMMER/ANALYST 0320000505007500COBOL Y
B222FRED TANAKA ALGRAPHIC DESIGNER 0071110506005000JAVASCRIPT Y
C333SALLY FIDDLER NCDATABASE ADMIN 1110220515017500CDB2 N
A111LEONARD STEIN NYJES/JCL SPECIALIST 0220330510027500COBOL Y
A111AL YANKOV NCPROGRAMMER/ANALYST 0110000504017500JCL L Y
B222KYUHEE PARK NYSYSTESM PROGRAMMER 0410300504027500ASSEMBLER Y
D444MEL HUDAK NCMANAGER 0640900506537500VISIO N
B333CARLOS RAMOS NYPROGRAMMER/ANALYST 0410100511011100COBOL Y
B222ELIZABETH W ALSYSTEMS ARCHITECT 0190200545433300ECLIPSE N
B222MILLARD FILL CAPROGRAMMER/ANALYST 0980030521044500COBOL N