JCL-Sort card “BI” to “ZD”

Many of the times you may come across checking the values in output files. But, you cannot see comp values in output. If you have file-aid tool, you can see the values in ZD(Zoned decimal) form.

For example, PIC S9(9) comp you can not see value in digit form in the output. This can be achieved by using  sort card

This is for Fixed length record:

INREC FIELDS=(1,2,BI,TO=ZD,LENGTH=5)

For VB:

INREC FIELDS=(1,4,1,2,BI,TO=ZD,LENGTH=5,5)

1,4 for VB RDW(Record descriptor word)

Last 5 is record starts from 5th position.

INREC options you can check HERE.

Author: Srini

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