Joined: 30 Jun 2007 Posts: 19 Location: United States
Hope you can help me...I have a qmf generated report that I want to spplit into several files wherein each file should have a specific report for a specific seat number (below is a mockup of the report).
The input will be one file containing all reports for all seat numbers. In the example input file the number of seat numbers is 2 thus there are 2 reports, 1 for each seat number.
The output should contain a report for a specific seat number. Output will vary depending on how many reports were produced for the seat numbers.
The number of lines for each report will also vary. There are no fixed number of lines for each report. The output file should start with the header information ending with the ***END OF REPORT FOR SEAT: 000n***.
I hope you can help me build up a code for this...
Joined: 09 Apr 2008 Posts: 133 Location: Phoenix, AZ
Many of us in the forum will be unable to see the attachment. So please post the records input and Output records instead of attachment.
Please answer the below Question:
Provide us the LRECL & RECFM of Input and output file.
Provide us the max number of Seat # (Number of output file need to create) will be present in your Input file.
For example, If the Max number of Seat is given as 15 and your current input file has only 10 Seat number, IS that fine if we create 10 files with seat number and 5 empty files?