Skipping 100 records

Skipping 100 records

Postby sriraj1122 » Fri Feb 04, 2011 5:47 pm

Hi all,

There is a requirement like skipping first 100 records and processing next 100 and again skipping next 100 records.

So which is the best way to implement it. Through JCL or through COBOL ?
I am aware of doing it in COBOL but can it possible to do it through JCL ??

Sriraj k
Posts: 19
Joined: Thu Nov 18, 2010 10:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: Skipping 100 records


Re: Skipping 100 records

Postby Robert Sample » Fri Feb 04, 2011 6:12 pm

but can it possible to do it through JCL ??
Nope. Not possible. Not possbile because JCL does nothing but execute programs. If you had specified, say, SORT, as the program you wanted to use -- perhaps it could be done. But JCL alone cannot do anything so your answer is NO!
Robert Sample
Global moderator
Posts: 3432
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 239 times

Re: Skipping 100 records

Postby Frank Yaeger » Fri Feb 04, 2011 11:38 pm

Sriraj k,

You can do this kind of thing with the SUBSET operator of DFSORT's ICETOOL. For complete details, see: ... 0630155256

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: ... g3T7000080
Frank Yaeger - DFSORT Development Team (IBM) -
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at
User avatar
Frank Yaeger
Global moderator
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Return to Stupid Questions