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
 

 

About SUM FIELDS ZD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: About SUM FIELDS ZD
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    Post subject:
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 Moderator


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

PostPosted: Mon May 23, 2011 10:38 pm    Post subject:
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    Post subject: Reply to: about sum ZD
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    Post subject:
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    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 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
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am


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