View previous topic :: View next topic
|
Author |
Message |
MadanVS
New User
Joined: 28 Dec 2010 Posts: 25 Location: Chennai
|
|
|
|
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 |
|
|
MadanVS
New User
Joined: 28 Dec 2010 Posts: 25 Location: Chennai
|
|
|
|
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 |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
|
|
|