+ Reply to Thread
Results 1 to 6 of 6

Thread: Embedded SQL in CL

  1. #1
    GlenKerner Guest

    Default Embedded SQL in CL

    I'm not sure but I know I've run SQL from CL by putting it in a source file and using the runsqlstm command.

  2. #2
    buck.calabro@commsoft.net Guest

    Default Embedded SQL in CL

    > Is there a way to embed SQL in CL other than OPNQRYF, > just like in RPG? If so how can I do it, whats the syntax. The quick answer is that you can't really do embedded SQL in CL 'just like in RPG.' A more convoluted answer is that you can run simple DDL scripts via IBM's RUNSQLSTM. You can also perform standalone SQL statements via Query Management Query (QMQRY). There are several QMQRY entries in the FAQ at http://faq.midrange.com. Search for QMQRY. The archives at http://archive.midrange.com have several contributions of some fairly generic 'command line' SQL processors, including RUNSQL. There are also several versions of this floating aroung the net. http://www.google.com can help you find them. The IBM manuals are at http://www.iseries.ibm.com/infocenter Hope that helped. --buck

  3. #3

    Default Embedded SQL in CL

    Also see This forum post at the bottom for a RUNSQLSTM example.

  4. #4
    Guest.Visitor Guest

    Default Embedded SQL in CL

    There's also the SEQUEL product from Advanced Systems Concepts (asc-iseries.com).

  5. #5

    Default Embedded SQL in CL

    The easiest way to run simple SELECT statement : RUNQRY *N YourLib/YourFile RCDSLT(*YES) Use F4 to prompt for options and record selection, it also gives summary(totals). It works like QRY400, but only one file could be used.

  6. #6
    Guest.Visitor Guest

    Default Embedded SQL in CL

    Is there a way to embed SQL in CL other than OPNQRYF, just like in RPG? If so how can I do it, whats the syntax. Thanks a lot. Sky

+ Reply to Thread

Similar Threads

  1. Embedded FTP
    By J.Wells in forum CL
    Replies: 5
    Last Post: 04-20-2005, 06:09 AM
  2. Embedded SQL
    By K.Forsythe in forum RPG
    Replies: 2
    Last Post: 10-07-2004, 09:08 AM
  3. Embedded SQL
    By nycsusan@hotmail.com in forum General
    Replies: 2
    Last Post: 03-11-2003, 06:55 AM
  4. Embedded SQL
    By H.Arner in forum Programming
    Replies: 4
    Last Post: 09-05-2001, 06:21 AM
  5. embedded SQL in ILE-RPG
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

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