IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Omit condition for zeros


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Mon Nov 26, 2012 6:31 pm
Reply with quote

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
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Mon Nov 26, 2012 6:38 pm
Reply with quote

I have referred below link :
ibmmainframes.com/viewtopic.php?t=52194&highlight=packed+decimal

However, it does not work for Debit Indicator.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Nov 26, 2012 6:38 pm
Reply with quote

What happen when you tried this??
Back to top
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Mon Nov 26, 2012 6:40 pm
Reply with quote

The sort card not considering the Debit Indicator 'D'
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 26, 2012 6:50 pm
Reply with quote

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
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Mon Nov 26, 2012 6:54 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 26, 2012 8:23 pm
Reply with quote

Try with
Code:
OPTION NOSZERO
Back to top
View user's profile Send private message
abraralum

New User


Joined: 19 Dec 2010
Posts: 42
Location: Bangalore

PostPosted: Wed Nov 28, 2012 6:12 pm
Reply with quote

Thanks Bill, it worked!
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Nov 28, 2012 6:27 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts How to display the leading zeros of a... DB2 7
No new posts How to give complex condition in JCL . CLIST & REXX 30
No new posts How to OMIT Records older than the cu... DFSORT/ICETOOL 15
Search our Forums:

Back to Top