Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Delete all lines in a dataset containing particular string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
sood16

New User


Joined: 23 Jul 2006
Posts: 5

PostPosted: Sun Jul 23, 2006 10:14 pm    Post subject: Delete all lines in a dataset containing particular string
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
References
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 1973
Location: Israel

PostPosted: Mon Jul 24, 2006 12:04 am    Post subject:
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    Post subject:
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: 1973
Location: Israel

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

No problem, New User... icon_lol.gif

O.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1