Friday, 3 May 2013

Program to count number of records using JCL...

You can do what ever you want in JCL using DFSORT it is mainly used to sort&merge inputs...

//STEP1 EXEC PGM=DFSORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
A01   CHAND
A02    RAJU
A03    VISU
B01     RESHA
B02     RAKI
C01     PRIYA
C02     RANA
/*
//SYSPRINT DD SYSOUT=*
//SYSIN DD*
OCCUR FROM(SYSIN) LIST(SYSIN) ON(1,1,CH) ON(VALCNT) BLANK
/*

(1,1,CH)                  VALUE COUNT
A                              3
B                              2
C                              2

1 comment:

  1. Can u take the count from 4 files and write it onto a single file.

    ReplyDelete

Expense Handler Application with advance technologies

Budget Planner  One of the application developed with Ionic 4 and Python-Flask.  Ionic 4 code:  https://github.com/logeshbuiltin/Expense...