my input file
e1234aaa
s1234
s3455
s6564
e2345bbb
s55436
s34535
s3535
s43234
e2356ccc
s4556
0utput
aaa count of s
bbb count of s
ccc count of s
solution for jcl
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 3
- Joined: Thu Sep 26, 2013 5:55 pm
- Location: hyderabad
-
- Member
- Posts: 3
- Joined: Thu Sep 26, 2013 5:55 pm
- Location: hyderabad
Re: solution for jcl
nandurijayanth1992 wrote:my input file
e1234aaa
s1234
s3455
s6564
e2345bbb
s55436
s34535
s3535
s43234
e2356ccc
s4556
0utput
aaa count of s
bbb count of s
ccc count of s
Suggest you now tell just what you want to do . . .
You have posted the same thing twice and there is little (no) explanation.
While a "picture" is good, an explanation of the "rules" is also needed.
When posting this kind of info, youi need to make sure the sample output is exactly what you want. What you want is perfectly clear to you, but it is not to many who will read it and possibly have a suggestion.
You have posted the same thing twice and there is little (no) explanation.
While a "picture" is good, an explanation of the "rules" is also needed.
When posting this kind of info, youi need to make sure the sample output is exactly what you want. What you want is perfectly clear to you, but it is not to many who will read it and possibly have a suggestion.
Have a good one
I suspect that what you're after is a count of records after a key record (the long one) and before the next key record (or end of file). However, you do not say whether the count is to include the key record or not or if the file is VB or FB or the positions of each field within the record.
Also, you do not say how you want this done - you have postted in the JCL forum and not one of the languages or sort forums so I guess you think JCL can do it. Well, it cannot! It only lets the operating system know that you want to run one or more programs and the sequence of those programs and what resources those programs need. If you are running a utility, e.g. a sort, the utility may need control cards - they are not JCL.
Also, you do not say how you want this done - you have postted in the JCL forum and not one of the languages or sort forums so I guess you think JCL can do it. Well, it cannot! It only lets the operating system know that you want to run one or more programs and the sequence of those programs and what resources those programs need. If you are running a utility, e.g. a sort, the utility may need control cards - they are not JCL.
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