|
Try changing from using key1 and key2 to kfld(*file) after all, that is the way you want to use the key From: Buzz Fenner <bfenner@jonesborocwl.org> To: "Discussion RPG (E-mail)" <RPG400-L@midrange.com> Subject: SETLL after OPNQRYF Date: Fri, 30 Jul 1999 12:14:46 -0500 Organization: City Water & Light Reply-to: RPG400-L@midrange.com 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 bfennerNS@jonesborocwl.org 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 +---END Ronald Nance Commerce Insurance Group Webster, MA. 01570 (508) 943-9000 Ext: 4078 rnance@commerceinsurance.com +--- | 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 +---END
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.