I ran below SORT but getting rounded value (known thing) and expecting to get 500.75".
//STEP0001 EXEC PGM=SORT
//SORTIN DD *
2004
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=INIT,OVERLAY=(10:1,4,ZD,DIV,+4))
//SORTIN DD *
2004
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INREC IFTHEN=(WHEN=INIT,OVERLAY=(10:1,4,ZD,DIV,+4))
Output:
********************************* TOP OF DATA **********************************
2004 501
******************************** BOTTOM OF DATA ********************************
2004 501
******************************** BOTTOM OF DATA ********************************
Expected Output:
********************************* TOP OF DATA **********************************
2004 500.75
******************************** BOTTOM OF DATA ********************************
2004 500.75
******************************** BOTTOM OF DATA ********************************
Please help.
Thanks.