×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Hi Mike,

You have to use the DIGITS function to convert numeric to character first.
Then you can use SUBSTR.



Thanx,

Nick



Nick Radich
Sr. Programmer/Analyst
EPC Molding, Inc.
Direct (320) 679-6683
Toll free (800) 388-2155 ext. 6683
Fax (320) 679-4516
nick_radich@xxxxxxxxxxxxxx



Mike Berman <mikeba777@xxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
07/13/07 10:56 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG400-l@xxxxxxxxxxxx
cc

Subject
Query Substr for numeric






HI I forget how to substriing a numeric I am looking to process records by
month in Query.
as in

MONTH SUBSTR(MYDAT, 2, 3)

MTIA,
Mike


---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.