COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: pooja on 13 Nov 2008 10:08:36 AM

Title: changing zip-code format
Post by: pooja on 13 Nov 2008 10:08:36 AM
we have zip code  field on db(db2)  with format 750650000(varchar)
my concern is how to display only the first 5 no --without last four 0000.

any help kindly apprerciated


pj
Title: Re: changing zip-code format
Post by: lindero on 13 Nov 2008 10:38:01 AM
what about cutting the trailing characters as "substring(zip_code,1,5)"
Title: Re: changing zip-code format
Post by: pooja on 13 Nov 2008 11:15:30 AM
thank you 'lindero'

i appreciate

pj