× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Thanks - that did the trick...

Tom Hightower
Solutions, Inc
http://www.simas.com
------------
If Bill Gates had a dime for every time a Windows box crashed... oh, wait - he does.



"Dan Wiesner" <dwiesner@execpc.com>
Sent by: rpg400-l-admin@midrange.com

08/17/01 03:48 PM
Please respond to rpg400-l

       
        To:        <rpg400-l@midrange.com>
        cc:        
        Subject:        Re: SQLRPGLE program giving strange message in joblog



It's the query options file.
Dan W.
 
Creating the QAQQINI query options file

Each system is shipped with a QAQQINI template file in library QSYS. The QAQQINI file in QSYS is to be used as a template when creating all user specified QAQQINI files. To create your own QAQQINI file, use the CRTDUPOBJ command to create a copy of the QAQQINI file in the library that will be specified on the CHGQRYA QRYOPTLIB parameter. The file name must remain QAQQINI, for example:
CRTDUPOBJ OBJ(QAQQINI)
FROMLIB(QSYS)
OBJTYPE(*FILE)
TOLIB(MYLIB)
DATA(*YES)

Because system-supplied triggers are attached to the QAQQINI file in QSYS it is imperative that the only means of copying the QAQQINI file is through the CRTDUPOBJ CL command.
<snip>
----- Original Message -----

From: tomh@simas.com
To: rpg400-l@midrange.com
Sent: Friday, August 17, 2001 3:25 PM
Subject: SQLRPGLE program giving strange message in joblog


(OS400 V4R4)  I've got an SQLRPGLE program which I'm trying to use to update a file.  I'm getting the following in my job log:


                        Additional Message Information                        

                                                                             
 
Message ID . . . . . . :   CPI433A                                            

Date sent  . . . . . . :   08/17/01      Time sent  . . . . . . :   15:20:05  

                                                                             
 
Message . . . . :   Unable to retrieve query options file.                    

                                                                             
 
Cause . . . . . :   Unable to retrieve the query options from member QAQQINI  

  in file QAQQINI in library QUSRSYS for reason code 2.  The reason codes and
  their meanings follow:                                                      

    1 - Library QUSRSYS was not found.                                        

    2 - File QAQQINI in library QUSRSYS was not found.                        



What is the QAQQINI file?  The update works if I key the update statement in using STRSQL, but fails when I run the same statement from my program.


Thanks!


Tom Hightower
Solutions, Inc
http://www.simas.com
------------
If Bill Gates had a dime for every time a Windows box crashed... oh, wait - he does.



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-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.