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

how to generate the report from the vsam file data


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sumitsharma

New User


Joined: 16 May 2006
Posts: 1
Location: pune

PostPosted: Tue May 16, 2006 7:23 pm
Reply with quote

hi i have transferred 2 ps data into 2 table and from that tables i have transferred into 1 ksds file.now i wanted to know how to generate the report from that vsam file. so plss anyone can send me that program how to generate the report.

thanks

sumit
Back to top
View user's profile Send private message
ranjitbhingare

New User


Joined: 30 Nov 2005
Posts: 94
Location: PUNE

PostPosted: Tue May 16, 2006 8:54 pm
Reply with quote

One way of creating report is

1. Create a REPORT-REC with HEADING-LINE and DETAILS-LINE

2. Then read your vsam file

3. Write HEADING-LINE into report file

3. After one record is read then move VSAM-FILE-REC fields in to your DETAIL-LINE record field.

4. WRITE DETAIL-LINE to report file

5. you can also specify after how many details lines you want HEADIN-LINE to be written again.


I hope this helps.

Please correct me if I am wrong.


Thanks & Regards,

Ranjit.....
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 1
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top