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
 
Only 24 records are coming as output when using ICETOOL

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

New User


Joined: 01 Sep 2006
Posts: 4

PostPosted: Thu Oct 19, 2006 3:15 pm    Post subject: Only 24 records are coming as output when using ICETOOL
Reply with quote

Hi,

My input has some 14000 records with duplicates.
When i sort this using ICETOOL to remove the duplicates and display all the unique records, only 24 records are coming as output.
By manually viewing the records i am able to find atleast 80 unique records.

Could anyone explain to me why it is so and how do i get all the unique records.

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

Frank Yaeger

DFSORT Moderator


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

PostPosted: Thu Oct 19, 2006 8:43 pm    Post subject:
Reply with quote

If you want to write all of the unique records to an output data set, you can use a SELECT statement like this:

SELECT FROM(IN) TO(OUT) ON(p,m,f) FIRST

where p,m,f is the starting position, length and format of the key you want to check for duplicates. Remember that if your RECFM is VB, you have to add 4 to p to account for the RDW in positions 1-4.

If you want to display each unique key, you can use an OCCUR statement like this:

OCCUR FROM(IN) LIST(OUT) ON(p,m,f)

If that doesn't help, then you need to explain exactly what it is you're trying to do. Show your complete job with all of the ICETOOL and DFSORT control statements. Show a subset of input records and output records that illustrates the "problem" you think you're having. Indicate what you expect for output. State the RECFM and LRECL of the input file.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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 Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am
No new posts add sequence number for duplicate rec... SRUTHI DRAVIDAMANI COBOL Programming 11 Thu Feb 22, 2018 5:37 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm

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