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

is it possible Genrate headr and trailor with total by sort


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

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Wed Apr 26, 2006 6:55 pm
Reply with quote

Hi,
i am having n different files genrated thru n different jobs.Each file contains region code and record extracted for that region thru corresponding job.

like each file will contain only one record as given below :

reg1 999999

now i want to genrate a report such that i would get all the region counts in one file along with the total no of records ..like

Region records
--------------------------
reg1 1000
reg2 2000

---------------------------
Total Records 3000

can we genrate such report thru SORT utility?
If yes How?

Thanks in advance,
umed
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 26, 2006 7:19 pm
Reply with quote

In your example, if reg1 is the region, then what is 999999? Is that the total record count for that region (i.e the value that needs to be summed)?

Also, how do you intend to accomodate the fact that you have a variable number of input datasets?
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: Wed Apr 26, 2006 9:45 pm
Reply with quote

Concatenate all of the input files as SORTIN, and use OUTFIL with REMOVECC, HEADER1 and TRAILER1 to create the report.
Back to top
View user's profile Send private message
umed

New User


Joined: 13 May 2005
Posts: 38

PostPosted: Thu Apr 27, 2006 8:18 pm
Reply with quote

Hi,
here n is fixed and the 99999 mentioned there is total no of records for that region

regards,
Umed
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 How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
No new posts how to calculate SUM for VB file usin... JCL & VSAM 1
Search our Forums:

Back to Top