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



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

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

Postby abkumarch » Tue Oct 30, 2007 8:26 pm

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
abkumarch
 
Posts: 21
Joined: Tue Oct 30, 2007 3:14 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby Frank Yaeger » Tue Oct 30, 2007 8:57 pm

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
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post