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 Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm


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