In a sequence file we want one particular record .How can u



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

In a sequence file we want one particular record .How can u

Postby mylavarapuvinay » Thu Jan 06, 2011 9:58 pm

In a sequence file we want one particular record .How can u omit using jcl?
mylavarapuvinay
 
Posts: 11
Joined: Thu Jan 06, 2011 9:40 pm
Has thanked: 0 time
Been thanked: 0 time

Re: In a sequence file we want one particular record .How can u

Postby Robert Sample » Thu Jan 06, 2011 10:02 pm

This cannot be done, period.

JCL does nothing but execute programs. The programs can be application programs, system utilities, SORT, vendor programs, or whatever -- but JCL executes programs, PERIOD.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: In a sequence file we want one particular record .How can u

Postby Robert Sample » Thu Jan 06, 2011 10:03 pm

If you had asked to do this with SORT, or a utility -- easy to do. With JCL, it cannot be done.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: In a sequence file we want one particular record .How can u

Postby Frank Yaeger » Thu Jan 06, 2011 11:26 pm

mylavarapuvinay,

Which particular record? How do you identify it? Do you want to write that one record to an output file, or omit that one record from the output file? You need to do a better job of describing what you want to do exactly before anyone can help you.

If you want to try to figure it out yourself, look up DFSORT's INCLUDE and OMIT statements. You can find all of the DFSORT books at:

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 JCL

 


  • Related topics
    Replies
    Views
    Last post