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

How to get eliminated records


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Mon Aug 04, 2008 11:19 am
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

Moderator Emeritus


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

PostPosted: Mon Aug 04, 2008 11:19 am
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

Superior Member


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

PostPosted: Mon Aug 04, 2008 1:08 pm
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
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: 25
Location: chennai

PostPosted: Mon Aug 04, 2008 3:54 pm
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

Moderator Emeritus


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

PostPosted: Mon Aug 04, 2008 7:10 pm
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: 2481
Location: @my desk

PostPosted: Mon Aug 04, 2008 7:36 pm
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: 25
Location: chennai

PostPosted: Mon Aug 04, 2008 7:39 pm
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

Moderator Emeritus


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

PostPosted: Mon Aug 04, 2008 9:56 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
No new posts JCL sortcard to print only the records DFSORT/ICETOOL 11
Search our Forums:

Back to Top