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

How to elliminate duplicates in FOCUS?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Mon Jan 05, 2009 12:24 pm
Reply with quote

Hi,
I like to know is there any option to elliminate duplicates from a file using FOCUS. Please let me know.

Regards,
murali.
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 Jan 05, 2009 12:46 pm
Reply with quote

Hello,

When you read a record that has the same value of the previous record, skip that record?
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Mon Jan 05, 2009 1:05 pm
Reply with quote

Dick,

Thanks for your reply.

My file has following structure

accountno acctname address-1 address-2
10000 xxxxx 01east crtt
10002 yyyyy 55west drtt
10000 xxxxx 01east crtt

TABLE FILE DAILY
PRINT ACCTNAME
BY ACCOUNTNO
END

Is there any builtin function like NODUPS in ICETOOL,SUMFIELDS=NONE in SORT utility etc. in FOCUS instead of comparing two values and elliminating?
Back to top
View user's profile Send private message
pkmurali
Warnings : 1

Active User


Joined: 15 Dec 2005
Posts: 271

PostPosted: Mon Jan 12, 2009 12:58 pm
Reply with quote

Hope I have given the clear picture of my requirement. I read a document for Focus documentation.informationbuilders.com/masterindex/html/html_s390_73/mf_create73/mf_create73.pdf where they have specified distinct clause to elliminate duplicates. since i don't have hands on experience on FOCUS,can anyone help me regarding this issue?

Regards,
Murali
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 How to remove block of duplicates DFSORT/ICETOOL 8
This topic is locked: you cannot edit posts or make replies. Compare files with duplicates in one ... DFSORT/ICETOOL 11
No new posts Merging 2 files but ignore duplicate... DFSORT/ICETOOL 1
No new posts COUNT the number of duplicates DFSORT/ICETOOL 3
This topic is locked: you cannot edit posts or make replies. SUM FIELDS=NONE in reverse - Get dupl... DFSORT/ICETOOL 9
Search our Forums:

Back to Top