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

BUILDING REPORT


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

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Wed Oct 31, 2012 5:33 pm
Reply with quote

Consider a file having the data as below:-

102678abcd
203878dfgd
204675zxvz
305698efra


Consider the following format for the above file :

SERIAL PIC 9(1)
OFFICE PIC 9(2)
ACCT PIC 9(3)
DATA PIC X(4)


I need to create a report for the above file in the following format:

HEADER

SUB-HEADER
SERIAL ---> 1
OFFICE ACCOUNT DATA
-----
----

-

SUB-HEADER
SERIAL ----> 2
OFFICE ACCOUNT DATA


.....

Please note it is not necessary that serial number will always be 1 2 or 3. The file is sorted on the basis of first 5 digits.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Oct 31, 2012 5:52 pm
Reply with quote

Consult your manual, look at the "reporting functions" on OUTFIL, HEADERn, TRAILERn, SECTIONS, there are many examples here.
Back to top
View user's profile Send private message
Keanehelp

New User


Joined: 27 May 2008
Posts: 71
Location: USA, CA.

PostPosted: Wed Oct 31, 2012 6:51 pm
Reply with quote

@Bill Woodger ...Thanks, just a question is this feasible using sort?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Oct 31, 2012 6:53 pm
Reply with quote

Yes. As I said, there are many examples here.
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 building java class with zip4j.jar on... Java & MQSeries 0
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
Search our Forums:

Back to Top