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

+0 with leading sign using DFSort


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

New User


Joined: 11 Feb 2008
Posts: 35
Location: Chennai

PostPosted: Fri Jul 03, 2009 12:37 pm
Reply with quote

Hi,
I want to write a +0 (ZD) of 9(11)v99 to my output file using DFSort. Please let me know the way.

The leading sign '+' must showup when i lookup the output file in InSync or FileAid
Back to top
View user's profile Send private message
nelson.pandian

Active User


Joined: 09 Apr 2008
Posts: 133
Location: Phoenix, AZ

PostPosted: Fri Jul 03, 2009 2:43 pm
Reply with quote

Hi vasif,

Change your ZD value to normal formate with the sign in the front. The following piece of code is one way to achieve this. Change the position according to your formate.
Code:
OUTREC OVERLAY=(1:1,13,ZD,EDIT=(SIIIIIIIIII.TT),SIGNS=(+,-))
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 Jul 03, 2009 8:06 pm
Reply with quote

Quote:
I want to write a +0 (ZD) of 9(11)v99 to my output file using DFSort. Please let me know the way.


How you would do that depends on what hex value Insync and FileAid require to display the value the way you want it.

A COBOL value of 9(11)v99 corresponds to a 13-byte ZD value for DFSORT. I don't know how Insync or FileAid displays that value. You need to figure out and show what hex value for 0 will produce the display you want with Insync and Fileaid. Once you show me what the value has to look like in hex, I can show you how to get that hex value in DFSORT.
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts Keep leading zero(s) after convert fl... SYNCSORT 7
Search our Forums:

Back to Top