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 All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts Comment Lines getting in the way when... JCL & VSAM 0
No new posts Comment multiple lines in JCL for Tem... JCL & VSAM 4
Search our Forums:


Back to Top