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 ??


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

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: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 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:

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
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 Stupid Questions