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: 2284
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 Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


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