Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

BUILDING REPORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Keanehelp

New User


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

PostPosted: Wed Oct 31, 2012 5:33 pm    Post subject: BUILDING REPORT
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Oct 31, 2012 5:52 pm    Post subject: Reply to: BUILDING REPORT
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: 70
Location: USA, CA.

PostPosted: Wed Oct 31, 2012 6:51 pm    Post subject: Reply to: BUILDING REPORT
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Oct 31, 2012 6:53 pm    Post subject: Reply to: BUILDING REPORT
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts Need help in building a logic Benchwarmer All Other Mainframe Topics 4 Wed Feb 22, 2017 2:49 am
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us