Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Using Decimal Points at the Include Cond.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Fri Mar 25, 2011 9:23 pm    Post subject: Using Decimal Points at the Include Cond.
Reply with quote

I want to use PD numbers with decimal points at Inculde Conditions;

For example;
....
SORT FIELDS=COPY
INCLUDE COND=(1,9,PD,GT,11.50)
....

I Want to Include the numbers greater than 11,50 to the output dataset.
How can I achive that?
Thanks..
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1788
Location: UK

PostPosted: Fri Mar 25, 2011 10:04 pm    Post subject:
Reply with quote

In packed decimal decimal points are notional - they do not exist except in your head - so compare to 1150 instead of 11.50
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Fri Mar 25, 2011 11:41 pm    Post subject:
Reply with quote

ozgurseyrek,

Nic is correct. PD values do NOT have the decimal point stored internally, so the value would be stored as PL9'1150' = X'00000000000001150C'
and the constant to use in INCLUDE would be 1150, not 11.50.
Back to top
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Mon Mar 28, 2011 11:41 am    Post subject:
Reply with quote

Thanks you very much...
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Mon Mar 28, 2011 4:21 pm    Post subject:
Reply with quote

Nic Clouston wrote:
In packed decimal decimal points are notional - they do not exist except in your head - so compare to 1150 instead of 11.50


Or 11500, or 115...
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 Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Need points to tune IMS Checkpoint Pr... satish.ms10 IMS DB/DC 2 Fri Sep 30, 2016 4:12 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us