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
 

 

Need to delete two records with common key in EZ Program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Need to delete two records with common key in EZ Program
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    Post subject: Re: Need to delete two records with common key in EZ Program
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    Post subject: Re: Need to delete two records with common key in EZ Program
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    Post subject: Re: Need to delete two records with common key in EZ Program
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    Post subject: Re: Need to delete two records with common key in EZ Program
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
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