Is there a way to partial field (or substring) a DESCR254_MIXED (long character field) in a SQL statement?

Tags:
AS/400 and SQL
SQL
SQL statements
Is there a way to partial field (or substring) a DESCR254_MIXED (long character field) in a SQL statement? Have tried the following, which do not work: column descr254_mixed format A30 set wrap off select descr254_mixed from PS REQ_LINE SELECT left(descr254_mixed, 20) from PS_REQ_LINE

Answer Wiki

Thanks. We'll let you know when a new response is added.

Is this what you want?

SELECT substr(descr254_mixed,1, 20) as desc20 from PS_REQ_LINE

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: