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

Select records having ABC NOT ABCD


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sivakumar cv

New User


Joined: 18 Sep 2007
Posts: 4
Location: US

PostPosted: Mon Sep 24, 2007 8:59 pm
Reply with quote

Hi,

I am running a batch fileaid and facing the following problem.

There are records that consists of ABC only and also ABCDE. Now i want to select records that have only ABC but not ABCDE.

EXAMPLE FILE LAYOUT :

12345 ABC MNOP
2345 ABCDE KLMN

To select first record(but not second record) I am writing this :

IF=(7,EQ,C"ABC")

to extract only 1st row, BUT

I am getting both the rows as output. I want to select records that has only ABC not those which has ABCDE.

I appreciate your help.

Thanks
sivakumar.cv
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 Sep 24, 2007 9:13 pm
Reply with quote

Hello,

Try "ABC ". . . . Place a space after the C. You might want a space before the A also.
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Join multiple records using splice DFSORT/ICETOOL 5
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top