Field editing for DB2 WebQuery

Tags:
AS/400
DB2 Web Query
IBM DB2
How can I provide field editing for DB2 WebQuery? For example: phone number(length 10, decimals 0) as (123)456-7890 and Customer Id# (length 6, decimals 0) as 1234-56 . DB2 WebQuery doesn't seem to pay attention to the edit words/edit codes of the PF DDS, so I am trying to do my own "editing". I want to create an SQL View of the file using Iseries Navigator. During creation of the SQL View, I want to substring parentheses and hyphens into 2 NEW SQL created alphameric Phone Number & Customer Id# fields. Then I want tell DB2 WebQuery to use the SQL view file instead of the original Physical file. PS. I am new to SQL and to DB2 WebQuery.

Answer Wiki

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

Discuss This Question: 1  Reply

 
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
  • AS400 - Ask the Expert
    Assuming that you're only worried about an output-only solution, the SQL View approach would be a valid technique to meet your editing requirements. It is also possible to use the DB2 WebQuery Developer Workbench to create virtual fields in the synonyms implementing the same general concatenation and substring logic. The SQL view approach offers a slight performance edge since the string manipulations are performed within the database engine instead of at the application layer of the DB2 WebQuery report server.
    485 pointsBadges:
    report

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