RE: Verifying SQLRPGLE

"Nazmin Haji" <[email protected]>
Newsgroups gmane.comp.systems.as400.code
Message-ID <[email protected]>
Hi Rick,
   You don't actually include the SQLCA in the source. You only need it in
your library list. Then when you verify the program, specify NEED_SQLCA in
the dialog. To get to the dialog choose the option to verify with prompt
and you can add this define in the Defines page. If you will be doing this
a lot, you may want to add it to the Verifier Preference page
(Windows->Preferences->Remote Systems->iSeries->Program Verifiers->ILE
RPG->Defines).  Whatever you add to these Preference pages will be used for
all the verifies. When you eventually compile the program, don't use this
define or else you will get compile errors.


Regards,
Nazmin Haji
Eclipse iSeries Tooling Development
D1/140/8200/MKM
Phone: (905)413-3355,  (T/L) 969-3355
Fax: (905)413-4850
Email and Same Time Connect:  [email protected]



                                                                                                                                  
                      "Chevalier, Rick"                                                                                           
                      <Rick.Chevalier@ameri        To:       "'CODE/400 Discussion & Support'" <code400-l-Zwy7GipZuJhWk0Htik3J/[email protected]>           
                      credit.com>                  cc:                                                                            
                      Sent by:                     Subject:  RE: Verifying SQLRPGLE                                               
                      code400-l-bounces@mid                                                                                       
                      range.com                                                                                                   
                                                                                                                                  
                                                                                                                                  
                      05/29/2003 08:57 AM                                                                                         
                      Please respond to                                                                                           
                      CODE/400 Discussion &                                                                                       
                      Support                                                                                                     
                                                                                                                                  
                                                                                                                                  



Interesting idea, I hadn't thought of that.  It does raise a question
though.  Doesn't the pre-compiler also include the SQLCA?  What happens if
I
have included it and the pre-compiler also tries to add it?  Does the RPG
compiler error out on duplicate definitions?

I am actually using the LPEX editor in Wads 5.0 and am unfamiliar with the
verify dialog you mentioned (I don't have any experience with CODE).  Can
the same thing be done there?

Rick

-----Original Message-----
From: Michele Cummings [mailto:[email protected]]
Sent: Wednesday, May 28, 2003 3:35 PM
To: CODE/400 Discussion & Support
Subject: RE: Verifying SQLRPGLE

Hi Rick..

If the problem that you are encountering is due to the fact that the SQLCA
DS is not defined, you could use the following workaround:.

Define a compiler-condition.  Specify NEED_SQLCA in the Verify
dialog for your Code/400 verify, but don't define it for your regular
compiles.
This way you do not have to keep changing your program.

 /IF DEFINED(NEED_SQLCA)
 /COPY sqlca_ds
 /ENDIF

Hope that helps.


Michele Cummings

WDSC for iSeries


_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at
http://lists.midrange.com/cgi-bin/listinfo/wdsc-l




_______________________________________________
This is the CODE/400 Discussion & Support (CODE400-L) mailing list
To post a message email: CODE400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/code400-l
or email: CODE400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/code400-l.

NOTE: WDSc for iSeries disucssion has it's own mailing list.
Information can be found at http://lists.midrange.com/cgi-bin/listinfo/wdsc-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.