Hi All,
Write a jcl to meet the requirement.
Requirement---There is a input file which containing account number and sequence number against each account number .write a jcl to count total sequence numbers generated for each account.
Example--- input file
Acct no seq nubr
01 001
01 012
01 045
01 025
02 076
02 087
02 098
02 011
Output will be : 01 4
02 4
count the records in jcl
Moderators: Frank Yaeger, DikDude, Moderator Group
Code: Select all
//JOBNAME JOB jobcard details
//STEP EXECPGM=yourpgm
//SYSPRINT DD SYOUT=*
//FILEIN DD DSN=your.input.file,DISP=SHR
//OUTPUT DD DSN=your.output.file,DISP=(,CATLG,CATLG),
// SPACE=(TRK,1),UNIT=yourunit
//
Regards
Nic
Nic
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page