Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 How to suppress retun code of partil ... mkk157 DB2 9 Fri May 27, 2016 6:59 am
No new posts Syncsort to remove the leading spaces V S Amarendra Reddy SYNCSORT 5 Fri Jan 08, 2016 9:47 pm
This topic is locked: you cannot edit posts or make replies. Mainframe Jobs in Leading Indian MNC aman2248 Mainframe Jobs 0 Mon Dec 21, 2015 3:25 pm
No new posts Zero suppress and shift left Bryant Shearin DFSORT/ICETOOL 10 Sat Oct 31, 2015 9:28 pm
No new posts Removing Leading Spaces and Removing ... rahulpala COBOL Programming 4 Fri Sep 04, 2015 4:58 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us