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

exclude "string" in the o/p file irrespective of i


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dineshm123

New User


Joined: 19 Feb 2009
Posts: 4
Location: india

PostPosted: Thu Feb 19, 2009 12:27 pm
Reply with quote

Hi,

I have an input file like this

aaaaa abcd dddd string
hhhhhh jjjjj ggghg jkj
jjhjhhjj string jkjkjk
ddddd ssss ggghg jkj

I want my output file to look like

hhhhhh jjjjj ggghg jkj
ddddd ssss ggghg jkj

In short, i want that if 'string' is encountered on any position, then that line should be discarded.

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 19, 2009 12:29 pm
Reply with quote

Had you used the search button, THIS thread would have appeared.

Use OMIT instead of INCLUDE.
Back to top
View user's profile Send private message
dineshm123

New User


Joined: 19 Feb 2009
Posts: 4
Location: india

PostPosted: Thu Feb 19, 2009 1:43 pm
Reply with quote

Thanks a lot! it worked
I used

Code:

   OPTION COPY                   
   OMIT FORMAT=SS,               
      COND=(1,80,EQ,C'string')
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Help with C character vs C string All Other Mainframe Topics 3
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top