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
 
Regarding Sum Fields

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Regarding Sum Fields
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 Moderator


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

PostPosted: Thu Aug 31, 2006 8:51 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Fri Sep 01, 2006 8:36 pm    Post subject:
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm

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