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
 

 

How to get eliminated records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
suresh_gop

New User


Joined: 01 May 2005
Posts: 4
Location: india

PostPosted: Mon Aug 04, 2008 11:12 am    Post subject: How to get eliminated records
Reply with quote

Hi,

During sort i have eliminated duplicate records. but i want to get it now after sort. how?
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Aug 04, 2008 11:19 am    Post subject:
Reply with quote

Hi,
I do not understand the question
Quote:
but i want to get it now after sort. how?


Can you please elaborate on this.


Gerry
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: Mon Aug 04, 2008 11:19 am    Post subject:
Reply with quote

Hello,

Go back to the original file.

There is nothing "to get" in the output from the process that eliminated the duplicates.

If the originial file has somehow been deleted, it will have to be re-created in order to get the duplicates.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Mon Aug 04, 2008 1:08 pm    Post subject:
Reply with quote

Or is this in the context of XSUM..?
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Mon Aug 04, 2008 1:12 pm    Post subject:
Reply with quote

Do you want to get the records which had the duplicate entries?
Back to top
View user's profile Send private message
sudhakar84

New User


Joined: 20 Jun 2008
Posts: 21
Location: chennai

PostPosted: Mon Aug 04, 2008 3:54 pm    Post subject: Reply to: How to get eliminated records
Reply with quote

Use XSUM function in sort
For example see the below given JCL,
//STEPSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=XXX.PV.SUMIN.SAMF
//SORTOF01 DD DISP=SHR,DSN=XXX.PV.SUMOUT.SAMF
//SORTXSUM DD DSN=XXX.PV.DUPLIC.SAMF,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(TRK,(50,50),RLSE),
// DCB=(RECFM=FB,LRECL=60,BLKSIZE=0)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,1,CH,A)
OUTFIL FILES=01,INCLUDE=(6,6,CH,EQ,C' ')
SUM FIELDS=NONE,XSUM
/*

The file XXX.PV.DUPLIC.SAMF (SORTXSUM) will have the records which occured more than once. Its better u sort the file XXX.PV.DUPLIC.SAMF based on the entire record and remove the duplicates in it to get the clear picture.
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: Mon Aug 04, 2008 7:10 pm    Post subject:
Reply with quote

Hello,

XSUM works during the sort - not after the sort as was requested in the original post. . .
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Mon Aug 04, 2008 7:36 pm    Post subject:
Reply with quote

suresh_gop,

Posting sample input/output records would definitely solve your problem.

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

New User


Joined: 20 Jun 2008
Posts: 21
Location: chennai

PostPosted: Mon Aug 04, 2008 7:39 pm    Post subject:
Reply with quote

"Its better u sort the file XXX.PV.DUPLIC.SAMF based on the entire record and remove the duplicates in it to get the clear picture. "

This has to be done after getting the sortxsum output. then we will get the clear idea on the records which is having the duplicates.

dick scherrer wrote:
Hello,

XSUM works during the sort - not after the sort as was requested in the original post. . .
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: Mon Aug 04, 2008 9:56 pm    Post subject: Reply to: How to get eliminated records
Reply with quote

Hello,

I have no idea what the previous reply is telling us. . . icon_confused.gif

d
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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