---
title: "15 Precious Uses of INREC,OUTREC and OUTFIL in JCL DFSORT"
description: "The super best advantages what you can do with DFSORT using sort utility in JCL. Read more."
url: https://srinimf.com/2016/01/19/15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort/
date: 2016-01-19
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2016/01/dfsort-advantages.jpg?fit=508%2C339&ssl=1
categories: ["DFSORT", "JCL"]
tags: ["DFSORT tips and Tricks"]
type: post
lang: en
---

# 15 Precious Uses of INREC,OUTREC and OUTFIL in JCL DFSORT

With INREC, OUTREC, and OUTFIL, you can perform a wide variety of tasks while sorting, copying, or merging, including the following:

![](https://i0.wp.com/srinimf.com/wp-content/uploads/2019/01/italy-culture.jpg?resize=712%2C400&ssl=1)

## 15 Real Uses of DFSORT

1. Delete fields.
2. Reorder fields.
3. Insert separators (blanks, zeros, strings, current date, future date, past date, and current time).
4. Translate data from uppercase to lowercase, lowercase to uppercase, EBCDIC to ASCII and ASCII to EBCDIC.
5. Translate data to hexadecimal and bit representation.
6. Convert numeric values to many different types of printable formats with or without thousands separators, decimal point, leading or suppressed zeros, and signs.
7. Convert numeric values from one format to another format.
8. Perform arithmetic using numeric values and decimal constants.
9. Convert date fields from one type to another type.
10. Perform arithmetic using date fields.
11. Change values using a lookup table.
12. Replace or remove data using find and replace operations.
13. Insert sequence numbers.
14. Left-justify data, right-justify data, left-squeeze data, and right-squeeze data.
15. Perform various operations on groups of records.

Related[JCL- Sort OUTFIL FNAMES (1 of 3)](https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/)

---

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2016%2F01%2F19%2F15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2016%2F01%2Fdfsort-advantages.jpg%3Ffit%3D508%252C339%26ssl%3D1&description=15%20Precious%20Uses%20of%20INREC%2COUTREC%20and%20OUTFIL%20in%20JCL%20DFSORT)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2016/01/19/15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2016/01/19/15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2016/01/19/15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2016/01/19/15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%2015%20Precious%20Uses%20of%20INREC%2COUTREC%20and%20OUTFIL%20in%20JCL%20DFSORT&body=https%3A%2F%2Fsrinimf.com%2F2016%2F01%2F19%2F15-precious-uses-of-inrecoutrec-and-outfil-in-jcl-dfsort%2F&share=email)
-

### Like this:

Like Loading…
