ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

SQL formatting issues in RPG

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SQL formatting issues in RPG

    I am having some problems getting complex quieries to format properly in RDI.

    When I try to do something like

    SELECT DISTINCT SUBSTR(ititm#, 5, 2) + SUBSTR(ititm#, 7, 2),
    (SELECT cfdsc1
    FROM confil
    WHERE cftype = 'COLR')
    ... *snip* ...

    I get the stuff all crunched to the side, with very little room to type from's and where's.

    Is there a way to turn off the auto formatting for the SQL, or at least change it to be more friendly?

    Thanks!

    -Adein

  • #2
    Re: SQL formatting issues in RPG

    Edit: Nevermind, just spotted the auto-formatting comment.
    Last edited by MichaelCatalani; March 16, 2011, 10:27 AM.
    Michael Catalani
    IS Director, eCommerce & Web Development
    Acceptance Insurance Corporation
    www.AcceptanceInsurance.com
    www.ProvatoSys.com

    Comment


    • #3
      Re: SQL formatting issues in RPG

      The automatic formatting does not work very well for a little more complex SQL statements.
      That's why I swichted the automatic formatting off:

      Window --> Preferences --> Remote Systems --> IBM i Parsers --> ILE RPG --> Free Form SQL

      Birgitta

      Comment


      • #4
        Re: SQL formatting issues in RPG

        Perfect! Thank you!

        Comment

        Working...
        X