I have a INSYNC batch to 'extract' certain conditioned data output. For instance, below insync code extracts the data if 44 pos has a value of '25'. Question here is, I wanna get the output in a sorted manner based on a particular field. Can we incorporate the SORT criteria below. Suggestions are really appreciated.
FUNCTION=EXTRACT
INDD=#INDD
OUTDD=#OUTDD
RDW=OFF
LINESPERPAGE=080
CASE
SEARCHDATA=(00044,002,EQ,C'25')
ENDCASE
PS: We can achieve the same by means of SORT utility through 'SORT FIELDS' parameter.