Page 1 of 1

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

PostPosted: Thu Jan 06, 2011 9:58 pm
by mylavarapuvinay
In a sequence file we want one particular record .How can u omit using jcl?

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

PostPosted: Thu Jan 06, 2011 10:02 pm
by Robert Sample
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.

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

PostPosted: Thu Jan 06, 2011 10:03 pm
by Robert Sample
If you had asked to do this with SORT, or a utility -- easy to do. With JCL, it cannot be done.

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

PostPosted: Thu Jan 06, 2011 11:26 pm
by Frank Yaeger
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