1) the records are reformatted according to what you specify for the INREC fields.
2) the reformatted records are sorted according to what you specify for the SORT fields.
3) the sorted records are reformatted according to what you specify for the OUTREC fields.
If you specify a MERGE statement instead of a SORT statement, the records will be merged instead of sorted.
If you specify COPY instead of SORT, the records will be copied instead of sorted.
If that doesn't answer your question, then you'll need to explain more clearly what it is you're asking about.
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:
Thanks a lot for answering my question. Can u please tell me when we should use inrec or outrec . How performance get improved if i go for inrec . In my example i am getting same output for both inrec & outrec .In the result the records are not in order in the both the options .
Can u please tell me when we should use inrec or outrec.
If you need to reformat the records before sorting them, then use INREC. Keep in mind that SORT, SUM, OUTREC, etc operate on the records as changed by INREC. So when you specify INREC, you must set up your SORT fields to correspond to the reformatted INREC record.
If you need to reformat the records after sorting them, use OUTREC.
How performance get improved if i go for inrec.
If you can significantly shorten the input records before sorting by using INREC, then you may see some performance gain. But, in general, you shouldn't use INREC just to try to improve performance.
In my example i am getting same output for both inrec & outrec. In the result the records are not in order in the both the options.
What example? You haven't shown any control statements, any input records or any output records, so I don't know what you're doing or what result you're getting. I can't explain things based on reading your mind. You need to show me what you're talking about.
Please help me
I'd be glad to, but you need to give me enough information so I can do that.