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
 

 

Find Duplicate in a ps file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Fri May 09, 2008 5:10 pm    Post subject: Find Duplicate in a ps file
Reply with quote

Hi All,

Is there any tso command which can be used to find a duplicate record in a file.

Regards,
Mouli
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri May 09, 2008 5:49 pm    Post subject:
Reply with quote

Not that I know of.
Back to top
View user's profile Send private message
ParagChouguley

Active User


Joined: 03 Feb 2007
Posts: 175
Location: PUNE(INDIA)

PostPosted: Fri May 09, 2008 6:33 pm    Post subject:
Reply with quote

Interesting Requirement...........!

I usually use SORT utilities for this thru JCL.
Using SORT command on TSO, one can get duplicate records one after another...................But again how to see if duplicates exists ??
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Fri May 09, 2008 6:45 pm    Post subject:
Reply with quote

if you can edit/VIEW the file, and it is sorted by the dup position that you are looking for, you can write a quick macro that can find dups for you.
i normally x all, and then only show dups.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon May 12, 2008 12:08 pm    Post subject:
Reply with quote

How the x all command is used, do u say XSUM in the JCL or it is a tso command...

Regards,
Mouli
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon May 12, 2008 2:29 pm    Post subject:
Reply with quote

as Dick pointed it's easy to get it using a Macro, sure there's a lot of ways but this is what I use:

1-Sort for field desired (start and length).
2-Exclude all
3-loop from 1 to zlast, if actualline (s,l) = previousline (s,l) then change status to nx.

you can play with flip or delete excluded or non-excluded...

hth.
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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