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 Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Need Help to Define 36 Input Fields (... satish.ms10 CLIST & REXX 2 Sat May 07, 2016 3:08 pm
No new posts FileAid to compare(logical operations... anand1204 Compuware & Other Tools 3 Wed Apr 06, 2016 2:55 am
No new posts Fields in File-Aid Browse menu screen boyti ko Compuware & Other Tools 5 Mon Apr 04, 2016 4:51 pm


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