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

SUM FIELDS of ZONED DECIMAL as DISPLAY without SIGN


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrgnndhmk

New User


Joined: 01 Feb 2006
Posts: 51
Location: India

PostPosted: Mon Aug 11, 2014 9:16 pm
Reply with quote

Hi All,
I did a quite a bit of search to find if the output of SUM FIELDS of ZONED DECIMAL return a display number instead of a SIGNED number but could not find the exact solution.

Any help is greatly appreciated.

Code:

SORT FIELDS=COPY,WORK=1,FILES=4
OPTION PRINT=ALL,FILNM=(,)
RECORD TYPE=F,LENGTH=10           
SUM FIELDS=(1,10,ZD)
INPFIL BLKSIZE=27990
OUTFIL BLKSIZE=27990


I/P:
0000055641
0000108870
0000055894
0000091030

O/P Expected:
0000311435

O/P Arrived:
000031143E



Using CA-SORT 9.0 and I am not sure if OVERLAY can be used in CA SORT.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Aug 11, 2014 9:27 pm
Reply with quote

You're going to have to hit your manuals, talk to colleagues, local support, CA Support. I don't think many here use CA-SORT currently.

In DFSORT, option ZDPRINT would control this. It is an installation option, which can be overriden by an OPTION statement at run-time.

I'd say your best bet is the discussion of SUM in the manual, or the options which can be set at installation (often a different manual for those).

If you get an answer, please post it, as it may help someone in the future.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Select a DB2 value in a specific deci... DB2 4
No new posts String has hex character need to conv... COBOL Programming 3
No new posts How to display the leading zeros of a... DB2 7
Search our Forums:

Back to Top