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



The CL command is only necessary if you are using native RPG.

If you are only using the embedded SQL, Drop the STRCMTCTL 

-----Original Message-----
From: J Michael Smith [mailto:Michael.Smith3@arch.com] 
Sent: Friday, January 31, 2003 12:51 PM
To: RPG400-L (E-mail)
Subject: SQL and Commitment control

Follow up:
 
I changed the STRCMTCTL CMTSCOPE       *JOB(in test) and retried.
Worked fine.  However making this modification inproduction is not an
option.
 
Michael  

 
I have a driver CL program that does a STRCMTCTL  LCKLVL(*CHG)
 
I compiled a program with embedded SQL statements with:
             
Commitment control . . . . . . .   *CHG
 
When ever the program is executed I receive the following error:
CPF4326    Escape                  50    01/31/03   13:59:38   QDBSIGEX

                                     To module . . . . . . . . . :
AI7704RP
                                     To procedure  . . . . . . . :
AI7704RP
                                     Statement . . . . . . . . . :
1000001 
Message . . . . :   Commitment definition *N not valid for open of
BLEGRPL0.         
Cause . . . . . :   Commitment definition *N is not valid for open of
member         
  BLEGRPL0 file BLEGRPL0 in library BOSS for one of the following
reasons: --        
  Member BLEGRPL0 was opened for commitment control when commitment
definition       
  *N was not active. -- Uncommitted changes are pending for member
BLEGRPL0          
  for a commitment definition other than *N. -- The calling program is
using         
  commitment definition *N which has a scope of *ACTGRP, while the
program           
  specified to open the file using a scope of *JOB. Recovery  . . . :
Do one       
  of the following and try your request again. -- For the first case,
use the        

 
I tried recompiling with a *NONE, same error.
 
Any suggestions on how to resolve this would be appreciated
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.