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

Need to delete two records with common key in EZ Program


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
anumalar

New User


Joined: 20 Oct 2006
Posts: 3
Location: singapore

PostPosted: Fri Oct 20, 2006 6:52 am
Reply with quote

i have one seq file with few records . Among these i need to delete two records with common key . After matching , how to remove both records from seq file . Pls advise. I need very simple step using ez program.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Fri Oct 20, 2006 9:33 pm
Reply with quote

Your request suggests that there is only one possible match of two records in you file , is this definitely the case?
or
could there be more than one pair of matching records?
or
more than two records with same key?

program logic differs depending on specification.

Would you consider using a SORT utility which could do this for you in one simple step?
Back to top
View user's profile Send private message
anumalar

New User


Joined: 20 Oct 2006
Posts: 3
Location: singapore

PostPosted: Mon Oct 23, 2006 3:44 pm
Reply with quote

Reply :

Your request suggests that there is only one possible match of two records in you file , is this definitely the case?

reply : one possible match only

or
could there be more than one pair of matching records?
more than one pair of matching records

or
more than two records with same key?

reply : two records with same key . But only one pair .
Every pair have diff common keys .


program logic differs depending on specification.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Tue Oct 24, 2006 4:42 pm
Reply with quote

still confused!
Give inputs and expected outputs.
Back to top
View user's profile Send private message
anumalar

New User


Joined: 20 Oct 2006
Posts: 3
Location: singapore

PostPosted: Thu Oct 26, 2006 7:37 pm
Reply with quote

Thks for yr reply .

I got the answer from other forum replies .

using dfsort


//S1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=... input file
//OUT DD DSN=... output file
//TOOLIN DD *
SELECT FROM(IN) TO(OUT) ON(1,3,CH) NODUPS
/*

It will remove duplicate records from seq file .
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Using API Gateway from CICS program CICS 0
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
Search our Forums:

Back to Top