Musab Razeen Ahmed New User Joined: 24 Feb 2011 Posts: 15 Location: India
I have a doubt as how DFSORT interprets the character SPACE when we sum a field specified as ZD when it contains a space along with numbers.
eg input files is as follows
| indicates SPACE
and the sort card is as below.
the result shows as 01|MUSAB|060.
Will DFSORT always interpret the Space as zero(0)? If yes, then does it mean that it does not make any difference if there is a space or zero(0) when summing up fields specified as ZD?
Could anyone please help me over this?
Bill Woodger DFSORT Moderator Joined: 09 Mar 2011 Posts: 7314
Appendix C of the "DFSORT Application Programming Guide" should give you the answers you want. Let us know if anything is not clear.
Frank Yaeger DFSORT Moderator Joined: 15 Feb 2005 Posts: 7130 Location: San Jose, CA
DFSORT sees a space as X'40'. In the last byte, this is interpreted as a plus sign and a decimal 0 digit. In the other bytes, this is interpreted as a zone (ignored) and a decimal 0 digit. So a space will, in fact, be treated as a 0.
All times are GMT + 6 Hours