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

How to handle the sign bit for ZD values


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

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Fri Sep 18, 2009 3:56 pm
Reply with quote

Hi,
i have a requirement to sum the total and write the o/p

i/p file is
Code:
00000000000010A
00000000000012M


o/p if the total is negative
Code:
00000000000002L


o/p if the total is positive
Code:
00000000000007G


but the o/p i recieve is not handling the sign values
Code:
000000000000023
000000000000077


code i used is
Code:
OUTFIL FNAMES=SYSUT2,NODETAIL,REMOVECC,             
TRAILER1=(1:TOT=(02,15,ZD,EDIT=(TTTTTTTTTTTTTTT)))


pls. assist me...
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: Fri Sep 18, 2009 9:30 pm
Reply with quote

It's handling the sign exactly as you told it to (not at all). EDIT=(TTTTTTTTTTTTTTT) does not contain a sign. If you want the total to be ZD values with a C sign for plus and a D sign for minus, use these DFSORT statements:

Code:

  OPTION COPY                                         
  OUTFIL FNAMES=SYSUT2,NODETAIL,REMOVECC,             
   TRAILER1=(1:TOT=(02,15,ZD,TO=ZDC,LENGTH=15))       
Back to top
View user's profile Send private message
kratos86

Active User


Joined: 17 Mar 2008
Posts: 148
Location: Anna NGR

PostPosted: Wed Sep 23, 2009 8:54 pm
Reply with quote

Thanks Frank, it worked icon_biggrin.gif
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
Search our Forums:

Back to Top