MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DFORT - SUM PD&ZD NUMBERS. USELESS UTILITY

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
TexasRanger
Beginner


Joined: 05 Feb 2004
Posts: 10
Topics: 4

PostPosted: Fri Apr 30, 2004 6:32 am    Post subject: DFORT - SUM PD&ZD NUMBERS. USELESS UTILITY Reply with quote

Hello,

I have tried to add packed decimal values using the DFORT utility with the SUM statement. Because I was getting a 0C7 error I got the IBM manual for DFSORT and I founD that is not possible to add values such as 3.6 + 2.4 = 6.0 because of the "."
Is there any way to add these decimal values??? or is just a poorly developed utility??
Another issue is that the SUM allows only 16 bytes for PD, whereas I need 18 bytes.
I guess this utility is useless because of the flaws is has.


Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Apr 30, 2004 7:30 am    Post subject: Reply with quote

texas ranger,

It is pretty lame to blame the product just because you cannot figure a work around

Check this link for summing a field with imbedded decimal point

http://www.mvsforums.com/helpboards/viewtopic.php?t=63&highlight=decimal+sum

Quote:

Another issue is that the SUM allows only 16 bytes for PD, whereas I need 18 bytes.


What kind of mainframe language supports 18 bytes for a packed decimal field? Even with cobol extend option you can define only a max of 16 bytes. I would love to see the definition of 18 bytes packed decimal definition

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mfjin
Beginner


Joined: 26 Apr 2003
Posts: 94
Topics: 17

PostPosted: Fri Apr 30, 2004 8:57 am    Post subject: Reply with quote

Quote:
I guess this utility is useless because of the flaws is has


Looks like the purpose behind this pathetic stmt of yours is just to rake up a controversy. I am one of those who cant thank dfsort enough for making our lives easier by helping us do away with a lot of programming. cant imagine life without dfsort. And to top it we have someone like frank who is always there to provide support on the product.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Fri Apr 30, 2004 10:27 am    Post subject: Reply with quote

TexasRanger,

Yes, there is a way to add decimal values - see the "Sum a number with a decimal point" Smart DFSORT Trick at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

An 18-byte PD field would have 35 digits. DFSORT's limit of 16 bytes (31 digits) is the same as COBOL's limit, so I guess that would make COBOL "useless" too.

But seriously, condemning a product as "poorly developed" and "useless" because it has a few restrictions is rather a harsh judgement. Most people find DFSORT/ICETOOL to be pretty useful utilities.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort


Last edited by Frank Yaeger on Mon Sep 11, 2006 6:49 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TexasRanger
Beginner


Joined: 05 Feb 2004
Posts: 10
Topics: 4

PostPosted: Thu May 06, 2004 9:12 am    Post subject: Reply with quote

HI,

I apologize, did not want to be so rude. I just arrived to the mainframe world and was pretty upset.

Thanks for your help.

TR
Back to top
View user's profile Send private message
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Thu May 06, 2004 8:11 pm    Post subject: Reply with quote

Texas Ranger,

I took a look at your previous post too and you didn't even bother to thank Kolusu for the help he gave you. What was your excuse that time?

I wouldn't give you the time of day.

Jack
Back to top
View user's profile Send private message
Brian
Beginner


Joined: 12 Aug 2003
Posts: 95
Topics: 6

PostPosted: Thu May 06, 2004 10:41 pm    Post subject: Reply with quote

Texas Ranger,

I dont want to be rude either but am just imagining the plight of your boss.Dismissing an utility like DFSORT/ICETOOL as *useless* just shows your ignorance. Please take time to visit the links provided by Frank and Kolusu to see the wonders that can be performed using this utility.

I guess ICETOOL is the 8th wonder of the world.

Cheers
Brian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group