|
|
| Author |
Message |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 503 Location: Chennai, India
|
|
|
|
Hello maxsubrat,
I guess,your requirement is to convert the PD field to a 6 digit displayable field with leading zeroes. Can you give this a try.
| Code: |
SORT FIELDS=COPY
OUTREC IFTHEN=(WHEN=(1,6,CH,NE,C'DIVHDR'),
BUILD=(1,6,7,4,PD,M11,LENGTH=6)) |
Thanks,
Arun |
|
| Back to top |
|
 |
References
|
Posted: Fri Jul 18, 2008 11:50 am Post subject: Re: |
 |
|
|
 |
maxsubrat
New User
Joined: 27 Feb 2008 Posts: 8 Location: india
|
|
|
|
sorry, it's not working..
try some different ..
Thanks |
|
| Back to top |
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 503 Location: Chennai, India
|
|
|
|
Hello maxsubrat,
I posted the card after testing and I got the below results. Is nt that you want?
| Code: |
DIVHDR046B780203 0000582510807072006281080701
001060053053
001178053053 |
Thanks,
Arun |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7921 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| but in our report the left 0 is suppressing, like 53053.... |
Then you need to correct your report. . .
| Quote: |
When we receive the file we are getting the LOCNBR as 53053 but actually it is 053053.
so the left zero is supressing |
Not from what you posted. You may be causing the leading zero to suppress, but it is in the data you posted.
How are you creating your "report"? You mention that is not as you want, but you haven't provided anyting for us to work with concerning how you are creating the report. |
|
| Back to top |
|
 |
|
|
|