Is there a way to sort a joined logical file from a field that is in the 2nd file of the JFILE command? What I need to do is sort the below by the EHCREATDTE field.
R JOINREC TEXT('EDI XREF FILE')
JFILE(EX_850DTL EX_850HDR)
J JOIN(1 2)
JFLD(EDARNO EHARNO)
JFLD(EDBEG03 EHBEG03)
EDARNO
EDSKU
EDUPC
EDSTCO#
EDSTCUST
EDSTSTYL
EDSTCOLR
EDSTPLNT
EDSIZE
EDPRICE
EHCREATDTE
K EDARNO
K EDSKU
R JOINREC TEXT('EDI XREF FILE')
JFILE(EX_850DTL EX_850HDR)
J JOIN(1 2)
JFLD(EDARNO EHARNO)
JFLD(EDBEG03 EHBEG03)
EDARNO
EDSKU
EDUPC
EDSTCO#
EDSTCUST
EDSTSTYL
EDSTCOLR
EDSTPLNT
EDSIZE
EDPRICE
EHCREATDTE
K EDARNO
K EDSKU