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

Delete all lines in a dataset containing particular string


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sood16

New User


Joined: 23 Jul 2006
Posts: 5

PostPosted: Sun Jul 23, 2006 10:14 pm
Reply with quote

Hi

I want to delete all the lines in a dataset containing particular string.Lines are not continuous am trying to use

X ALL;F ALL '++++';DELETE ALL X

but its deleting all the lines not containing ++++

Please tell me the command for this
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jul 24, 2006 12:04 am
Reply with quote

Sorry, my mistake. Here it is again:

Try either:

X ALL;F ALL '++++';DELETE ALL NX

or

X ALL '++++';DELETE ALL X

O.
Back to top
View user's profile Send private message
sood16

New User


Joined: 23 Jul 2006
Posts: 5

PostPosted: Mon Jul 24, 2006 12:09 am
Reply with quote

Thanks Active user NX worked
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Jul 24, 2006 12:45 am
Reply with quote

No problem, New User... icon_lol.gif

O.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top