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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

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