Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
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    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

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
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: 2360
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us