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

Exclude data from multiple input files without merging


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ramkumar.thulasingam

New User


Joined: 22 Nov 2011
Posts: 2
Location: AUSTRALIA

PostPosted: Mon Dec 05, 2011 3:40 am
Reply with quote

Hi All,

I have a requirement that I have to exclude some records from multiple input files for example DVLP.SAMPLE.FILE1, DVLP.SAMPLE.FILE2, DVLP.SAMPLE.FILE3 ........ say there are 50 files like this.

I have to exclude records based on few conditions.

Point here is all the input files should not be merged. They have to be maintained individually. After excluding the records, excluded records to be written to a separate file.

Could someone help me out on this using sort.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Dec 05, 2011 4:03 am
Reply with quote

Hi,

please explain what you mean by input files should not be merged and do you want excluded records in 1 output file or 1 output file for each input file ?


Gerry
Back to top
View user's profile Send private message
ramkumar.thulasingam

New User


Joined: 22 Nov 2011
Posts: 2
Location: AUSTRALIA

PostPosted: Mon Dec 05, 2011 6:30 am
Reply with quote

I want to exclude one or two records from each input file.

Each file will be having Header , detail and Trailer.

When we remove one or two records from detail, we have to update the count of details in Trailer accordingly on each file.

Hope this explains you . Please let me know if still this is unclear.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Dec 05, 2011 6:50 am
Reply with quote

Hi,

1. you must learn to answer questions when asked.

2. you must learn to ask questions and not change your mind from one post to another.

Your latest request does not resemble anything like your original request.

3. I would start from scratch and state exactly what you want.

what sort product are you using ?

provide some sample data, how do you determine what is the header or data or trailer, format of the trailer, RECFM LRECL.

Have you tried anything at all, if so, what problems are you having ?


Gerry
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Mon Dec 05, 2011 6:58 am
Reply with quote

Quantas, your employer according to your profile, has never lost a plane, but with the likes of you working there they will quite likely do so very soon.

Your requirement cannot be solved with JCL, nor with sort, so stop wasting our time. Go away and start writing your own programs and don't rely on others to do your job for you.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Dec 05, 2011 8:55 am
Reply with quote

the initial question does not make any sense really.
the process of deleting records and updating counts is completely unrelated to the number of files to be processed.

after having developed the solution, applying it to 1,2,3, .... 357246 datasets is a moot point.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Store the data for fixed length COBOL Programming 1
Search our Forums:

Back to Top