---
title: "JCL- Sort OUTFIL FNAMES (1 of 3)"
description: "As we all know, in JCL knowing SORT with DFSORT utility is a niche area. Every mainframe professional feels a little bit hard when working with SORT. I have seen in Banking and Telecom domain, the usa..."
url: https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/
date: 2012-05-29
modified: 2026-10-05
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2012/05/jcl-sort-outfil.jpg?fit=1200%2C700&ssl=1
categories: ["JCL"]
tags: ["JCL tips and Tricks"]
type: post
lang: en
---

# JCL- Sort OUTFIL FNAMES (1 of 3)

As we all know, in JCL knowing SORT with [DFSORT utility](https://srinimf.com/2015/05/01/zos-how-dfsort-works-in-simple-way/) is a niche area. Every mainframe professional feels a little bit hard when working with SORT.

I have seen in Banking and Telecom domain, the usage with OUTFIL is much.

Just a few:

1. Write to multiple output datasets
2. Covert FB file to VB file
3. Converts VB file to FB
4. Also, Parsing, Editing, Reformatting we can do

> Great for your patience. Let me tell something about my self. I am very much interested in reading books. Recently I read “Invest in yourself-Transform your career” , this book says we need to focus and re-focus and find some niche area in your working area. So that you will become hot cake for companies…Very nice.

Actually, with SORT we can avoid writing complex programs. There are many things to learn. OUTFILE and OUTFIL both are correct.

Let me give an example:

```
OUTFIL FNAME=(FILE1, FILE2, FILE3)
```

So after sorting, we can write sorted results to multiple files. These files can be DASD, TAPE, etc.

Another usage is :

```
OUTFIL FNAMES=SKIP70,STARTREC=71
OUTFIL FNAMES=MIDDLE,STARTREC=601,ENDREC=1000
```

More I will give in my next posts.

Related Posts

- [Best JCL Interview Questions – Splitting Input File](https://srinimf.com/2014/09/04/best-jcl-interview-questions-splitting-input-file/)DateSeptember 4, 2014
- [DFSORT: How to Use Conditional Include In OUTFIL](https://srinimf.com/2015/04/29/jcl-conditional-include-in-outfil-statement/)DateApril 29, 2015
- [Ideas: How to Split the File Using OUTFIL](https://srinimf.com/2016/08/04/tip-to-split-input-file-with-outfil/)DateAugust 4, 2016

### 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%2F2012%2F05%2F29%2Fjcl-sort-outfil-fnames-1-of-3%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2012%2F05%2Fjcl-sort-outfil.jpg%3Ffit%3D1200%252C700%26ssl%3D1&description=JCL-%20Sort%20OUTFIL%20FNAMES%20%281%20of%203%29)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2012/05/29/jcl-sort-outfil-fnames-1-of-3/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20JCL-%20Sort%20OUTFIL%20FNAMES%20%281%20of%203%29&body=https%3A%2F%2Fsrinimf.com%2F2012%2F05%2F29%2Fjcl-sort-outfil-fnames-1-of-3%2F&share=email)
-

### Like this:

Like Loading…
