Results 1 to 3 of 3

Thread: Sql Error 907?

  1. #1
    Join Date
    Apr 2005
    Posts
    23

    Unanswered: Sql Error 907?

    EXEC SQL INSERT INTO CAMBRSEQDETL
    (SELECT MBRSEP, 0, 0
    FROM MBRSEPMSTR
    WHERE MBRSEP != '0000000000'
    ORDER BY MBRSEP)
    END-EXEC.
    Can anyone tell me what is wrong with this statement? I do not see a missing right parentheses. This code is inside a Cobol program with embedded sql. Thanks for your help!!!

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool


    You cannot use ORDER BY clause.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Apr 2005
    Posts
    23

    Sql-907

    This code has been in production for a while. It could possibly be a pre-compiler issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •