Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Gems ! When i edit a dataset

Status
Not open for further replies.

Idiot

Programmer
Oct 8, 2000
26
US
Hi Gems !

When i edit a dataset in ISPF editor and do a
X ALL; F 'ABC' ALL

It shows me only those lines which contain 'ABC' and all the rest of the lines will be excluded.
Is there a way to save the subset containing 'ABC' in another dataset? or is it possible to save the existing dataset with the above filter so that all the records that dont contain 'ABC' will be deleted from it and i will end up having only those records with 'ABC' (in the edited dataset)

Thanks,
idiot
Thanks,
As usual i appreciate your help

idiot
 
Hi I,

Back with the small dogs, I see. :)
To answer your ques, you can do the following:

Enter del all x;f abc;:c9999;create newmem;can on the cmd line. What this does is delete all the unwanted data temporarily; inform create to copy all the "abc" lines remaining to the newmem and cancel the updates and return oldmem to its original status. You can use replace instead of create if newmem already exists.

You can do this by entering the commands 1 at a time, if you want to. The important thing to remember is to CANCEL, or else you will lose the original contents of oldmem!!!!

Oh, the :c9999 is a way of entering line cmds on the cmd line. The f abc positions the cursor on the line I want the c9999 to be.

Hope this helps, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top