+ Reply to Thread
Results 1 to 5 of 5

Thread: SQLRPGLE and referencing fields

  1. #1
    Mary Mudido Guest

    Default SQLRPGLE and referencing fields

    Try this code... 0475.00 0476.00 C/EXEC SQL 0477.00 C+ delete from where xx = 'value' 0478.00 C/END-exec 0479.00 0480.00 C/EXEC SQL commit 0481.00 C/END-exec 0482.00

  2. #2
    Guest.Visitor Guest

    Default SQLRPGLE and referencing fields

    That would be nice, if the information was hard coded, but this is a batch job, and names change.

  3. #3

    Default SQLRPGLE and referencing fields

    In Mary's example above, where needed, replace any constants with a variable name. The variable name must be preceded with a colon (. Is that what you're looking for? Fro your first post, it seems like you have another problem. Where is the variable $JOB coming from? -dan

  4. #4
    Guest.Visitor Guest

    Default SQLRPGLE and referencing fields

    I am doing a delete of records from a file specifying where job name is equal to a field, see code. But the sql statement does not work. Anyone have any insight? I am on V5R2. In debug, putting cursor on the field and hitting command 11 results in EVAL $JOB Identifier does not exist. Anyone care to hazard a guess on this?

  5. #5

    Default SQLRPGLE and referencing fields

    But one of the two examples below should work for you. The First example if you are always deleting from the same file based on a particular key. The Second example if you're creating the SQL statement on the fly.
    Code

+ Reply to Thread

Similar Threads

  1. Self referencing DS
    By H.Boldt in forum RPG
    Replies: 2
    Last Post: 11-03-2006, 07:29 AM
  2. Program Referencing Files
    By K.Forsythe in forum CL
    Replies: 2
    Last Post: 10-27-2004, 03:38 AM
  3. Cross Referencing Tools
    By Guest.Visitor in forum General
    Replies: 0
    Last Post: 01-13-2003, 03:11 PM
  4. Replies: 8
    Last Post: 08-26-2002, 07:09 AM
  5. Need help creating UDF referencing RPGLE *SRVPGM
    By Guest.Visitor in forum Programming
    Replies: 5
    Last Post: 11-22-1999, 05:54 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