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

need generate the separate file report


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

New User


Joined: 10 Apr 2006
Posts: 4
Location: Bangalore

PostPosted: Wed Aug 08, 2007 4:10 pm
Reply with quote

Hi,
We need to generate a report using input file.

Every Day we are getting the INPUT file from the client, the file contain the customer details. And The number of records are varying in INPUT while receiving, i.e suppose today we received 5 customer information and tomorrow may be 6 or 7 or ……..etc. it depends

For each Customer we need generate the separate file report

Can please guide how to go about this?

Regards,
Ram

EX1:
Code:
 
        INPUT file
           0011RAM10000
           0020NAG32000
     Out file 1
          No : 0011
          Name : RAM
          Sal    : 10000
     Out file 2
          No : 0020
          Name : NAG
          Sal    : 32000


EX2:
Code:

        INPUT file
           0009ABC22222
           0011RAM10000
           0020NAG32000
      Out file 1
          No : 0009
          Name : ABC
          Sal    : 22222     
     Out file 2
          No : 0011
          Name : RAM
          Sal    : 10000
     Out file 3
          No : 0020
          Name : NAG
          Sal    : 32000


EX3:
Code:

        INPUT file
           0009ABC22222
           0011RAM10000
           0019XYZ33333
           0020NAG32000
      Out file 1
          No : 0009
          Name : ABC
          Sal    : 22222     
     Out file 2
          No : 0011
          Name : RAM
          Sal    : 10000
     Out file 3
          No : 0019
          Name : XYZ
          Sal    : 33333
     Out file 4
          No : 0020
          Name : NAG
          Sal    : 32000
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Aug 08, 2007 4:24 pm
Reply with quote

What sort of requirement would require multiple datasets consisting of one record each?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 08, 2007 4:49 pm
Reply with quote

William Thompson wrote:
What sort of requirement would require multiple datasets consisting of one record each?


Errrrrrrrrr, HOMEWORK ???

But being in a reasonably good mood today icon_evil.gif

You can do it with REXX and create the sysouts independantly, even route the individual sysouts to different places if you want to.

You could probably do it with any programming language.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Aug 08, 2007 7:56 pm
Reply with quote

Ram,

You could dynamically generate a DFSORT job with the needed output DD statements and OUTFIL statements and submit it to the internal reader.

Do you want the output to to go SYSOUT or a data set? If a data set, what would the DD statement for one of the output data sets look like?
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 Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top