JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
by Nisha » Wed Jun 04, 2008 11:35 am
Hi,
I have to count the number of records in an output file using JCL.
Regards,
Nisha
-
Nisha
-
- Posts: 5
- Joined: Wed Jun 04, 2008 11:26 am
- Has thanked: 0 time
- Been thanked: 0 time
by jayind » Wed Jun 04, 2008 1:23 pm
Is this count for your information or want to use it somewhere else down the line in the same JCL?
-
jayind
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Location: Chennai, India
- Has thanked: 0 time
- Been thanked: 0 time
-
by Nisha » Wed Jun 04, 2008 1:38 pm
For information(Just to know the number of records which have been written to the output file). This has to be displayed in the output file to give a summary.
-
Nisha
-
- Posts: 5
- Joined: Wed Jun 04, 2008 11:26 am
- Has thanked: 0 time
- Been thanked: 0 time
by jayind » Wed Jun 04, 2008 1:57 pm
Check the link...
http://www.mvshelp.net/vbforums/showthread.php?t=22496Here is the solution provided by Frank Yaeger....
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD ... input file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL REMOVECC,NODETAIL,
TRAILER1=(COUNT=(M11,LENGTH=8))
/*
Hope this helps..
-
jayind
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Location: Chennai, India
- Has thanked: 0 time
- Been thanked: 0 time
-
by Nisha » Wed Jun 04, 2008 2:31 pm
Can the same code be used for counting the records in VSAM as well?
-
Nisha
-
- Posts: 5
- Joined: Wed Jun 04, 2008 11:26 am
- Has thanked: 0 time
- Been thanked: 0 time
by jayind » Wed Jun 04, 2008 2:33 pm
Yes.
-
jayind
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Location: Chennai, India
- Has thanked: 0 time
- Been thanked: 0 time
-
by Nisha » Wed Jun 04, 2008 2:49 pm
ok
-
Nisha
-
- Posts: 5
- Joined: Wed Jun 04, 2008 11:26 am
- Has thanked: 0 time
- Been thanked: 0 time
Return to JCL
-
- need to Count number of records
by Chaitnya » Tue Apr 22, 2008 9:34 am
- 3 Replies
- 3292 Views
- Last post by dick scherrer
Fri Apr 25, 2008 7:10 am
-
- JCL to count the number of records
by Purushoth » Fri Dec 31, 2010 1:16 am
- 4 Replies
- 10416 Views
- Last post by steve-myers
Fri Dec 31, 2010 12:16 pm
-
- To count no.of records in a file
by yousufroushan » Thu Jun 24, 2010 12:47 pm
- 2 Replies
- 2343 Views
- Last post by yousufroushan
Thu Jun 24, 2010 2:35 pm
-
- SORT - SUM and count of records by key
by naveenkumar sudha » Mon May 09, 2022 1:36 pm
- 3 Replies
- 2842 Views
- Last post by naveenkumar sudha
Mon May 09, 2022 10:15 pm
-
- DFSORT number records
by JorenWillems » Fri Mar 16, 2012 2:57 pm
- 3 Replies
- 2952 Views
- Last post by BillyBoyo
Fri Mar 16, 2012 3:50 pm