Page 1 of 1

Skipping 100 records

PostPosted: Fri Feb 04, 2011 5:47 pm
by sriraj1122
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 ??


Regards,
Sriraj k

Re: Skipping 100 records

PostPosted: Fri Feb 04, 2011 6:12 pm
by Robert Sample
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!

Re: Skipping 100 records

PostPosted: Fri Feb 04, 2011 11:38 pm
by Frank Yaeger
Sriraj k,

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

http://publibz.boulder.ibm.com/cgi-bin/ ... 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:

http://www.ibm.com/support/docview.wss? ... g3T7000080