JCL: How to Use Separator in DFSORT

Here’s the best example of how you can insert separators in DFSORT.

OUTREC FIELDS=(1,8,20C'*',9) or OUTREC BUILD=(1,8,20C'*',9)

In the above example, inserting ‘*’ 20 times is a separator.

Top valid separators:

  • blanks
  • zeros
  • strings
  • current date
  • future date
  • past date
  • current time

The usage of separators you can find here is OUTREC, IFTHEN, and OVERLAY statement. Wherein the actual values are overlaid with separators.


Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.