I'm following DFSORT tutorial. I have this dataset:
COMPUTER LANGUAGES MURRAY ROBERT FERN COMP 561
LIVING WELL ON A SMALL BUDGET DEWAN FRANK COR 108
...
The problem is that SEQNUM is get "aleatory" occurrence and not the first occurrence.
Like, the first occurence for COMP should be 00000001, but I'm getting 00000009 instead.
//SYSIN DD *
INREC FIELDS=(01:57,05,X,63,04,UFF,EDIT=(TTTTT),SEQNUM,8,ZD)
SORT FIELDS=(01,05,CH,A)
SUM FIELDS=(08,04,ZD)
/*
INREC FIELDS=(01:57,05,X,63,04,UFF,EDIT=(TTTTT),SEQNUM,8,ZD)
SORT FIELDS=(01,05,CH,A)
SUM FIELDS=(08,04,ZD)
/*
Thanks folks.