The below SORT:
//STEP001 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTMSG DD SYSOUT=*
//SORTIN DD *
éýÐ --> Record 1
2200058A00444444444444444444444
002C11DC0B000000000000000000000
-------------------------------
ð ç % --> Record 2
2208044601444444444444444444444
000C180C12000000000000000000000
-------------------------------
/*
//SORTOUT DD SYSOUT=*
//*
//SYSIN DD *
OPTION COPY
INCLUDE COND=(1,3,ZD,NE,000)
/*
yields:
:::::éýÐ :
2200058A00
002C11DC0B
---------
Whereas, when 'ZD' is changed to 'PD', it returns:
SYSIN:
INCLUDE COND=(1,3,PD,NE,000)
SORTOUT:
:::::éýÐ :
2200058A00
002C11DC0B
---------
:: ð:ç %::
2208044601
000C180C12
---------
Query: What is causing the difference in behaviour (the dropping of second record) when 'ZD' is coded?
I am fairly confident that I am misunderstanding how packed-decimal-data and zoned-decimal-data is read byte-per-byte, when the input format itself is PD.
It will be very helpful if one can guide on this.
Thank you!