IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Zero Suppression with DB2 SQL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Occitiger

New User


Joined: 12 Jan 2007
Posts: 2
Location: Sacramento

PostPosted: Mon Feb 01, 2010 11:19 pm
Reply with quote

I've been looking around trying to find a way to display results from a SPUFI WITHOUT zero suppression.

In specific I have a 13 digit field that when selected will drop off the preceding zeroes (if any)...

Does anyone know how to do such a thing?

I've been looking around, but I'm starting to think that looking for zero suppression is the wrong question, so even if you have an idea on what the right question would be, that would be helpful as well.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Feb 01, 2010 11:58 pm
Reply with quote

It has nothing to do with sql, it is just the way spufi displays numeric values.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Feb 02, 2010 12:29 am
Reply with quote

Hello and welcome to the forum,

Try:
char(the_numeric_col) instead of only the_numeric_col. . .
Back to top
View user's profile Send private message
Occitiger

New User


Joined: 12 Jan 2007
Posts: 2
Location: Sacramento

PostPosted: Tue Feb 02, 2010 12:33 am
Reply with quote

Well still haven't figured it out, but am looking into the spufi stuff. Thanks for that hint, sometimes I'm just asking the wrong question.

I figured out a way around and kinda have to run with that for a minute. Hopefully I can come back to this when work settles down becuase I'd really like to know.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Feb 02, 2010 12:37 am
Reply with quote

Follow-on. . .

My reply probably should have said:

Try:
select char(the_numeric_col) from the_table. . .

instead of only:
select the_numeric_col from the_table. . .
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Zero Suppression DB2 4
No new posts space suppression COBOL Programming 13
No new posts Leading spaces suppression COBOL Programming 3
No new posts VB File handling with suppression of ... COBOL Programming 4
No new posts Suppression of trailing spaces in giv... COBOL Programming 6
Search our Forums:

Back to Top