I have an input file with 50 numeric fields.I need to get the maximum values of these fields and write it on to a report.I tried using OUTREC statement but i am getting Numeric field error.Can anyone help me out how to achieve this using OUTREC statment.I want particularly using DFSORT.
SYNCSORT FOR Z/OS 220.127.116.11R U.S. PATENTS: 4210961, 5117495 (C)2005
FEDERATED SYSTEMS GROUP z/OS
PRODUCT LICENSED FOR CPU SERIAL NUMBER 2ED8F, MODEL 2084 304
OUTREC FIELDS=(4:C'MAX RPT-PRIN:',20:3,5,ZD,MAX)
WER271A OUTREC STATEMENT : NUMERIC FIELD ERROR
WER211B SYNCSMF CALLED BY SYNCSORT; RC=0000
WER449I SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
My requirement is, I have around 100 fields in an input file and i have to find the maximum of all the fields and iwrite it on to an output file using SORT utility(Outrec statement) in a single step.Please help me out.