Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Matched and unmatched record in diffrent file using ICETOOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Nitin Bhargava

New User


Joined: 22 May 2012
Posts: 32
Location: india

PostPosted: Tue Jun 26, 2012 4:26 pm    Post subject: Matched and unmatched record in diffrent file using ICETOOL
Reply with quote

Hi All,

I am having a file with following record:

100NITIN 99999
144 SI9999
144ROHITSI9999
1 NITINBH9999

Here I want two diffrent files, one with matched record and other one with unmatched using ICETOOL.
The condition for matching is:
The 2nd and 3rd (2,2) bytes should not have spaces or zeroes and should be greater than 10. From 4 to next 5 bytes (4,5) should not have spaces. The 9th and 10th byte (9,2) should not have spaces.

The output will be
Matched record:
144ROHITSI9999

Unmatched record
100NITIN 99999
144 SI9999
1 NITINBH9999

I tried with discard option but it didn't work. The INCLUDE condition is only populating matched record.
Back to top
View user's profile Send private message

Naish

New User


Joined: 07 Dec 2006
Posts: 82
Location: UK

PostPosted: Tue Jun 26, 2012 4:36 pm    Post subject:
Reply with quote

Hello Nitin Bhargava,

2. why have you not used code tags?
3. what is the lrecl and recfm?
4. could you post your sort card and the o/p?
5. INCLUDE will only do what you ask it to do? So you are (might be) getting the "so-called-matched" records, correctly.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1537
Location: Andromeda Galaxy

PostPosted: Tue Jun 26, 2012 4:38 pm    Post subject:
Reply with quote

Couple of outfil with INCLUDE should do the job for you ( Thats the hint )
Back to top
View user's profile Send private message
Nitin Bhargava

New User


Joined: 22 May 2012
Posts: 32
Location: india

PostPosted: Tue Jun 26, 2012 4:39 pm    Post subject:
Reply with quote

lenght of record is 800 and record format is FB
Back to top
View user's profile Send private message
Naish

New User


Joined: 07 Dec 2006
Posts: 82
Location: UK

PostPosted: Tue Jun 26, 2012 4:43 pm    Post subject:
Reply with quote

Pandora-Box has already provided the hint (solution).

Why didn't you answer the rest of the questions?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Jun 26, 2012 11:24 pm    Post subject:
Reply with quote

Hello,

Is there any business reason to use ICETOOL? No, it is not a "requirement". The requirement is getting the correct process run. Unless this is a training exercise and if so, you should mention this.

Why did you mention "match". A match requires 2 input file and 1 or more output files.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us