Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Suppress Leading Sign ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Suppress Leading Sign ?
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    Post subject:
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 Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Tue Mar 15, 2011 10:31 pm    Post subject:
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us