Page 1 of 1

Sort for comp-3.

Posted: Mon Jul 30, 2018 8:37 pm
by Binamra
Hi

I had file which is having Comp-3 variable Whose EMP id is 17 digits stored in comp-3 format. Now I want to exclude when 6 to 9 digits are 1000. How to write sort for it? Please help.

[ Post made via Android ] Image

Re: Sort for comp-3.

Posted: Tue Jul 31, 2018 2:23 pm
by nicc
I presume you mean 'data set'? Use the EXCLUDE option of DFSort. Sort does not care that the bytes that you are interested in are in the middle of a variable - sort does not deal with variables, it deals with bytes. Just look up the manual for the correct format to use.

Re: Sort for comp-3.

Posted: Mon Sep 24, 2018 12:05 pm
by Binamra
Thanks nicc. DFSort worked for me.