IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Summary report creation


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Alexis Sebastian

New User


Joined: 04 Mar 2010
Posts: 38
Location: DC

PostPosted: Thu Mar 17, 2011 1:10 pm
Reply with quote

Hi All,

Is it possible to create a report for the below requirement?

Input File RECFM = FB, RECLEN = 80
Code:

015032011 - HEADER RECORD                   
1122645102390606012605039060114122010       
1122645372465595912605046559514122010       
1122645532000323212605000032814122010       
1122055611702434312605070243026012011       
1122057051415525212605041552726012011       
1122057481032939312605003293326012011       
1122645102390606012605039060127012011       
1122645372465595912605046559527012011       
1122645532000323212605000032827012011       
1160126050702434312605070243001022011       
1159126050460126050500390603701022011       
1132126050059126050500465595301022011       
1143126050032126050500000325301022011       
1152126050043126050500702435306022011       
1193126050052126050500415525306022011       
1160126050093126050500032935306022011       
1159126050060126050500390605306022011       
1132126050059126050500465595315032011       
1143126050032126050500000325315032011       
1152126050043126050500702435315032011       
1193126050022645532500226455315032011       
1160126050032931260500226455315032011       
90000022  - TRAILER RECORD                   


Date Field starts at pos 30, lenth=8 ( DDMMYYYY ). This file is getting accumulated daily. Need to create summary report based on the date field i.e How many records present for a particular date?

The given input file is a sample file. It may contain more than 10k records.

Output Report

Code:

DATE       NO OF RECORDS
------------------------
14122010 - 3           
26012011 - 3           
27012011 - 3           
01022011 - 4           
06022011 - 4           
15032011 - 5           
------------------------
TOTAL      22           


Thanks in advance.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Mar 17, 2011 3:20 pm
Reply with quote

I did something like that - just playing around - by reading the sort manual and using the DISPLAY option
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Mar 17, 2011 10:48 pm
Reply with quote

Alex,

Here's a DFSORT job that will do what you asked for:

Code:

//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD SYSOUT=*
//SYSIN DD *
  INCLUDE COND=(1,1,CH,EQ,C'1')
  INREC BUILD=(30,8,80:X)
  SORT FIELDS=(5,4,CH,A,3,2,CH,A,1,2,CH,A)
  OUTFIL REMOVECC,NODETAIL,
    HEADER2=('DATE       NO OF RECORDS'/,24'-'),
    SECTIONS=(1,8,
      TRAILER3=(1,8,C' - ',COUNT=(EDIT=(IIIT)))),
    TRAILER1=(24'-',/,'TOTAL',12:COUNT=(EDIT=(IIIT)))
/*
Back to top
View user's profile Send private message
Alexis Sebastian

New User


Joined: 04 Mar 2010
Posts: 38
Location: DC

PostPosted: Fri Mar 18, 2011 1:47 pm
Reply with quote

Frank,

Excellent. It works.

Thanks alot for your help and I understood the TRAILER concept now.

Happy week ends!!! icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Need help on formatting a report DFSORT/ICETOOL 14
No new posts Creating Report using SORT DFSORT/ICETOOL 7
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
No new posts Report of batch jobs JCL & VSAM 1
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top