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: 7254

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: 7254

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 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
No new posts Daily report to be extracted from CA ... polymathtarun DFSORT/ICETOOL 5 Mon Jul 11, 2016 4:33 pm
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm
No new posts Drop building Alternate Index for a p... bhavin.mehta JCL & VSAM 6 Mon Jul 04, 2016 3:47 pm


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