solution for jcl

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
nandurijayanth1992
Member
Posts: 3
Joined: Thu Sep 26, 2013 5:55 pm
Location: hyderabad

solution for jcl

Post by nandurijayanth1992 » Thu Sep 26, 2013 5:59 pm

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

nandurijayanth1992
Member
Posts: 3
Joined: Thu Sep 26, 2013 5:55 pm
Location: hyderabad

Re: solution for jcl

Post by nandurijayanth1992 » Thu Sep 26, 2013 6:00 pm

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

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Thu Sep 26, 2013 9:55 pm

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.
Have a good one

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Thu Sep 26, 2013 11:00 pm

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.
Regards
Nic

Post Reply

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



Other References
Mainframe Tools and others