Dynamic SQL in RPGLE

10 pts.
Tags:
AS/400
RPGLE
SQL
How can I build a dynamic SQL statement for input from a screen file?


Software/Hardware used:
Building dynamic SQL in RPGLE
1

Answer Wiki

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

I assume you are looking to take screen data and build an SQL statement. 

In this case we are doing it based on a po# entered in the screen in our SQL comparing it to our order header ship to PO#. 
This is just a portion of the SQL.
C+       OHSPO# LIKE ‘%’ concat Trim(:INPO) concat ‘%’

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.
  • CharlieBrowne

    Are you asking how to build FROM input from a screen?

    or TO a screen?

    62,385 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.

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

Following

Share this item with your network: