View previous topic :: View next topic
|
Author |
Message |
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
Hi,
I am trying to remove records if the packed decimal field contains a zero.
Below is my sort card
Code: |
SORT FIELDS=COPY
OMIT COND=(01,8,PD,EQ,0,09,8,PD,EQ,0)
|
However not sure if it works for Debit Indicator. Any pointers will be helpful. |
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
Back to top |
|
|
Pandora-Box
Global Moderator
Joined: 07 Sep 2006 Posts: 1592 Location: Andromeda Galaxy
|
|
|
|
What happen when you tried this?? |
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
The sort card not considering the Debit Indicator 'D' |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Do you mean by "debit indicator" the D which is the value in the sign nybble for a negative number? Are you saying you have "negative zeros" which are not being identified? Or what?
EDIT: You OMIT card is not syntactically correct. |
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
Hi Bill,
Yes, it is 'D" which is the sign for a negative number.
Actually, I have data like this- X'000000000000000C'.
I would need to identify if the filed contain X'000000000000000D' also. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Try with
|
|
Back to top |
|
|
abraralum
New User
Joined: 19 Dec 2010 Posts: 42 Location: Bangalore
|
|
|
|
Thanks Bill, it worked! |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Thanks for letting us know. It is available as an installation option, so you should get it discussed so that someone can decide whether to make it the permanent default, or leave it as it is with all personnel aware of it. |
|
Back to top |
|
|
|