Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to split file into multiple files dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rahul_jot

New User


Joined: 17 Aug 2005
Posts: 22
Location: Pune

PostPosted: Fri Oct 23, 2009 2:03 pm    Post subject: How to split file into multiple files dynamically
Reply with quote

I have a report file which contains multiple reports. I have to split them into separate reports and send through email. Reports are separated by asterisks. Eg:
Report:1
Date:2009-10-23
Data: AAAAA
*********************************************
Report:2
Date:2009-10-22
Data: AAAAACCC
*********************************************
Report:3
Date:2009-10-21
Data: AAAAABBB
*********************************************

Problem is this report file is created daily and number of reports are not fixed. On one day I can have only 2 reports and second day I can have 10. Is there way I can split these reports dynamically and use exactly same number of steps to send them through email. I need separate email for each report.

Thanks.
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Fri Oct 23, 2009 2:11 pm    Post subject:
Reply with quote

Quote:
Problem is this report file is created daily and number of reports are not fixed. On one day I can have only 2 reports and second day I can have 10. Is there way I can split these reports dynamically and use exactly same number of steps to send them through email

The way you are trying to achive it, may not be possible.

You can used COBOL program to do so.



1:Use dynamic dataset allocation routine and write each report in one dataset.
2:Send that dataset as attachment via email.
3:Repeat 1 & 2 till report dataset ends.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Oct 23, 2009 2:23 pm    Post subject: Reply to: How to split file into multiple files dynamically
Reply with quote

if the issue is recurring and is crucial to Your organization operations
I would advice against a in house solution
there are tools that can do that in a much more effective fashion

decollate/collate/merge reports in any combination , print them/ email them/ store them in the appropriate form

google along the lines of ... report management and distribution
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Fri Oct 23, 2009 7:19 pm    Post subject: Reply to: How to split file into multiple files dynamically
Reply with quote

do not double post, please ...
Your other topic on the same subject has been deleted
if it is clear that You are using DFSORT then this topic will be moved where it belongs
thank You
Back to top
View user's profile Send private message
Debabrata Pruseth

New User


Joined: 11 Dec 2008
Posts: 59
Location: Pune , India

PostPosted: Fri Oct 23, 2009 11:59 pm    Post subject: Re: Reply to: How to split file into multiple files dynamica
Reply with quote

enrico-sorichetti wrote:

google along the lines of ... report management and distribution


I remember one case where the requirement was similar in our organization . We didn't had knowledge about any report management and distribution utility so We created a REXX utility to read the input file and dynamically allocate multiple output files . The tool also submitted a JCl for each of the output file thus created.

Hope it helps Rahul.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us