converting character to numeric in query/400

135 pts.
Tags:
AS/400 Query
Hello, Is there a way of converting character to numeric data in WRKQRY? I've read Query/400 manuals and found no simple way of data conversion. Thanks in advance!
ASKED: March 11, 2008  3:45 AM
UPDATED: March 11, 2008  12:36 PM

Answer Wiki

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

Hi,

I don’t believe there is a simple way to do this in WRKQRY. You might have more success with Query Manager (command STRQM) or SQL (command STRSQL).

If you really need to convert character to numeric for WRKQRY, what you could do is create an identical DDS described file with a numeric field in the place of your character field (with the same lengths) and use CPYF with FMTOPT(*NOCHK). But I’m sure there are better solutions than this.

Regards,

Martin Gilbert.

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following