Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Omit condition for zeros

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Omit condition for zeros
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    Post subject:
Reply with quote

I have referred below link :
http://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

Moderator


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

PostPosted: Mon Nov 26, 2012 6:38 pm    Post subject:
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    Post subject:
Reply with quote

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon Nov 26, 2012 6:50 pm    Post subject: Reply to: Omit condition for zeros
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Mon Nov 26, 2012 8:23 pm    Post subject: Reply to: Omit condition for zeros
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    Post subject:
Reply with quote

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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Wed Nov 28, 2012 6:27 pm    Post subject: Reply to: Omit condition for zeros
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add STAT condition Balu5491 Compuware & Other Tools 1 Mon Jul 30, 2018 7:32 pm
No new posts Comparing Comp-3 fields with greater ... Prateeksichem1 DFSORT/ICETOOL 11 Fri Jul 13, 2018 8:45 am
No new posts Remove duplicate record with condition rajiv rengasamy DFSORT/ICETOOL 4 Wed Jul 11, 2018 3:55 pm
This topic is locked: you cannot edit posts or make replies. Issue in suppressing leading zeros &a... Vijay_Sirisha COBOL Programming 21 Thu Jun 07, 2018 8:01 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us