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

Suppress Leading Sign ?


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

New User


Joined: 28 Dec 2010
Posts: 25
Location: Chennai

PostPosted: Tue Mar 15, 2011 12:23 pm
Reply with quote

Hi

I am converting PD field to char.

I am getting sign bit in my output. Can anyone let me know how to remove sign in the output file.

Sort card used :
Code:
 OPTION COPY                                             
 INCLUDE COND=(18,1,CH,EQ,C'A')                         
 INREC FIELDS=(1:10,8,9:19,8,PD,TO=FS,LENGTH=12,22:49,4)
 SORT FIELDS=(9,12,CH,A)                                 
/*                                                       
//                                                       



Output file received:
Code:
      +990006
   +100069434
   +100069435
   +100069436
   +100069437
   +100069438
   +100069439


Output expected:

Code:
       990006
   100069434
   100069435
    100069436
   100069437
   100069438
    100069439




Thanks
Madhan
Back to top
View user's profile Send private message
MadanVS

New User


Joined: 28 Dec 2010
Posts: 25
Location: Chennai

PostPosted: Tue Mar 15, 2011 1:27 pm
Reply with quote

Thnx

Got the answer.

Code:
OPTION COPY                                                           
INCLUDE COND=(18,1,CH,EQ,C'A')                                       
INREC FIELDS=(1:10,8,9:19,8,PD,EDIT=(SIIIIIIIIIIT),SIGNS(' '),22:49,4)
SORT FIELDS=(9,12,CH,A)                                               
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: Tue Mar 15, 2011 10:31 pm
Reply with quote

Or more simply:

Code:

  INREC FIELDS=(1:10,8,9:19,8,PD,EDIT=(IIIIIIIIIIT),22:49,4)


If you don't want a sign, don't ask for it. You don't need S and SIGNS.
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 Keep leading zero(s) after convert fl... SYNCSORT 7
No new posts Remove leading zeroes SYNCSORT 4
No new posts leading spaces can be removed in trai... DFSORT/ICETOOL 1
No new posts How to display the leading zeros of a... DB2 7
This topic is locked: you cannot edit posts or make replies. Suppressing only leading zeros (not s... DFSORT/ICETOOL 9
Search our Forums:

Back to Top