હિમાંશુ પરભુભાઇ મિસ્ત્રી | Himanshu Mistry

July 22, 2009

deleting all non-exclude X ALL lines in ISPF

Filed under: how to,learning,mainframe — Himanshubhai Mistry @ 6:24 pm

How to delete all Un-Excluded Lines in ISPF

Generally you would have used :
x all; find all <criteria>; del x all

It deletes all lines you have excluded (and don’t need any more) in your dataset.

Here we have different scenario:

We want to exclude all lines that meets a <criteria> and then delete all lines that don’t meet the <criteria> …

steps :

[1] x all <criteria>

It will exclude all lines having the <criteria>

Now read carefully

Now you want to delete all visible lines and keep all excluded lines (which meets your <criteria>)…………..

and unwanted lines are now visible to you.

you want to delete these all visible (unwanted) lines.

the command you have to issue is :

[2] del all nx

it will keep all excluded lines and delete all visible lines.

You will see all the lines are excluded in your dataset,

Just issue reset command and view the result..

Got it ??? !!!!

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: