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
 

 

Zero Suppression with DB2 SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Zero Suppression with DB2 SQL
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    Post subject:
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

Site Director


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

PostPosted: Tue Feb 02, 2010 12:29 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Feb 02, 2010 12:37 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Zero Suppression GuyC DB2 4 Fri May 06, 2011 10:30 am
No new posts space suppression mf_karthik COBOL Programming 13 Thu Nov 05, 2009 8:47 pm
No new posts Leading spaces suppression Robert Sample COBOL Programming 3 Wed Oct 14, 2009 4:03 pm
No new posts VB File handling with suppression of ... shell100 COBOL Programming 4 Fri Mar 13, 2009 5:08 pm
No new posts Suppression of trailing spaces in giv... shell100 COBOL Programming 6 Fri Mar 13, 2009 4:23 pm


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