I'm trying to do Division in DFSORT
//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
52
//SYSIN DD *
OUTREC BUILD=(1,1,ZD,DIV,2,1,ZD)
OPTION COPY
/*
//SYSOUT DD SYSOUT=*
//SORTIN DD *
52
//SYSIN DD *
OUTREC BUILD=(1,1,ZD,DIV,2,1,ZD)
OPTION COPY
/*
I got the answer as 2. I was expecting to get 2.5
Then I changed the sort card as below
OUTREC BUILD =((1,1,ZD,DIV,2,1,ZD),EDIT=(TT.TT))
This time I got 00.02.
Can someone please help me to know what I'm missing?
Thank you in advance!
Regards,
rskmfguy