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

About SUM FIELDS ZD


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
julian123

New User


Joined: 14 Aug 2006
Posts: 25

PostPosted: Mon May 23, 2011 2:03 pm
Reply with quote

this is my input file

Code:

<...+....1....+....2
00001000000200
FFFFFFCFFFFFFC
00001000000200
 _____________________
00002000000300
FFFFFFCFFFFFFC
00002000000300


and I want to get the output file as following
Code:

<...+....1....+....2
00003000000500
FFFFFFCFFFFFFC
00003000000500


but when I use SUM FIELDS=(1,7,ZD,8,7,ZD), I got
Code:

<...+....1....+....2
00003000000500
FFFFFFFFFFFFFF
00003000000500


Why I can't get a C(positive sign) but an F.
Anybody can help me , thanks a lot in advance.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 23, 2011 2:42 pm
Reply with quote

Hi, DFSORT uses F for positive sign by default.
Use

Code:

   OPTION NZDPRINT


to get C for positive sign
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: Mon May 23, 2011 10:38 pm
Reply with quote

Quote:
DFSORT uses F for positive sign by default.


More accurately:

For SUM, DFSORT uses an F for a positive sign if ZDPRINT=YES is in effect or a C for a positive sign if ZDPRINT=NO is in effect. DFSORT's shipped installation default is ZDPRINT=YES, but the site can change that to ZDPRINT=NO.

If you want to ensure that ZDPRINT=YES is in effect for a particular job, you can specify:

Code:

   OPTION ZDPRINT


for that job.

If you want to ensure that ZDPRINT=NO is in effect for a particular job, you can specify:

Code:

   OPTION NZDPRINT


for that job.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue May 24, 2011 2:37 am
Reply with quote

Quote:
but the site can change that to ZDPRINT=NO.

Enlightened... icon_exclaim.gif Thanks..
Back to top
View user's profile Send private message
julian123

New User


Joined: 14 Aug 2006
Posts: 25

PostPosted: Tue May 24, 2011 7:10 pm
Reply with quote

Dear two, thanks for your suggestion, it's useful. thx.
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