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

Regarding Sum Fields


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rupa.P.V
Warnings : 1

New User


Joined: 04 Jul 2006
Posts: 30

PostPosted: Thu Aug 31, 2006 11:25 am
Reply with quote

Hi All,

My input file is in the format given below.

P123CLOT 0
P123CLOT 1000
P123CLOT 200
P123CLOT 10

the second column in the above file need to be summed up...
when i use the
Sum fileds =(26,4,ZD).

I am getting the output in the Hexa decimal format.
Please help me out to get it n the normal format.

If i am not clear with my question please let me know.

Thanks in advance..
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Thu Aug 31, 2006 8:51 pm
Reply with quote

Well, you haven't explained things very clearly, but based on experience I'm going to take a guess that your summed ZD field looks like this

121{

instead of

1210

If that's the case, you can use the following DFSORT control statement to get 0 (X'F0' - F sign) instead of { (X'C0' - C sign):

Code:

   OPTION ZDPRINT


If that's not it, then you need to explain more clearly what your input looks like (use vb code tags, or b for each blank), what your output looks like, and what you want your output to look like.
Back to top
View user's profile Send private message
Rupa.P.V
Warnings : 1

New User


Joined: 04 Jul 2006
Posts: 30

PostPosted: Fri Sep 01, 2006 10:33 am
Reply with quote

Yes Frank,

I was getting the output as 121{ and i wanted it as 1210.
I used the statament which u have given and its working now ....
Thanks a lot Frank.....
It helped me a lot...
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Fri Sep 01, 2006 8:36 pm
Reply with quote

Glad I could help.
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 Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
No new posts Converting unpacked fields to pack us... SYNCSORT 4
No new posts Data for newly added fields not displ... IMS DB/DC 6
This topic is locked: you cannot edit posts or make replies. SUM FIELDS=NONE in reverse - Get dupl... DFSORT/ICETOOL 9
Search our Forums:

Back to Top