Page 1 of 1

how can u copy/ delete records frm a seq file ?

PostPosted: Tue Oct 30, 2007 8:26 pm
by abkumarch
how can u delete selected records frm a sequential file using jcl ? it is not possible using tso.

I want yr confident answer, plz dont guess

Re: how can u copy/ delete records frm a seq file ?

PostPosted: Tue Oct 30, 2007 8:57 pm
by Frank Yaeger
With DFSORT. Exactly how you would do it depends on exactly what you want to do (e.g. if you want to delete the first 10 records, you can use SKIPREC=10; if you want to delete records based on a condition, you can can use OMIT, etc).

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/servers/storage/supp ... tmpub.html