• Subject: SETLL after OPNQRYF
  • From: Buzz Fenner <bfenner@xxxxxxxxxxxxxxxx>
  • Date: Fri, 30 Jul 1999 12:14:46 -0500
  • Organization: City Water & Light

Hi all,

I have a logical file keyed by Key1/Key2.  I do an OPNQRYF to extract 
certain values of Key2 and order the file KEYFLD((KEY1) (KEY2)).  In an RPG 
IV program, I execute a SETLL on the file using Key1.  The equal indicator 
(position 3) is not being set on, although I know that the key value 
exists.  Removing Key2 from the KEYFLD parm causes the SETLL to work. 
 Also, using SETLL without an OPNQRYF preceding the RPG program will work. 
 What relationship between the program and the command is causing this to 
happen?  Any theories/facts?  Thanks.

Buzz Fenner
Remove NS to reply

| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.