Hola,
prueba a compilar el RPG con estos par�metros.

COMMIT(*NONE) ALWBLK(*NONE)

saludos !!
                                                                       
                                                                       
                                                                       
                                Xavier Priu                            
                        Departamento de Inform�tica                  
                               Frigicoll S.A.                          
                         Tel 93.480.33.22 (Ext 329)                    
                   -------------------------------------               
                (Embedded image moved to file: pic05705.gif)           
                                                                       





                                                                       
             Carlos Portoles                                           
             <carlos.portoles@                                         
             gmail.com>                                               Para
             Enviado por:              [email protected]        
             forum.help400-req                                          cc
             [EMAIL PROTECTED]                                           
                                                                    Asunto
                                       Problema con DELETE en SQLRPGLE 
             01/04/2005 16:22                                          
                                                                       
                                                                       
                Por favor,                                             
                responda a                                             
             [EMAIL PROTECTED]                                         
                  bios.es                                              
                                                                       
                                                                       




Hola a todos/as!

Tengo un problema con un DELETE en un programa SQLRPGLE.

La instrucci�n es la siguiente

C/Exec Sql
C+ Delete from FILE
C+ Where DATE < :OldDate
C/End-Exec

En interactivo, desde el STRSQL me permite borrar registros, pero al
ejecutarlo desde programa me da el siguiente error.

Member FILE not journaled to journal *N.
FILE in LIBRARY not valid for operation.

SQLCODE = -7008
SQLSTATE=55019


Estoy depurando con UPDPROD(*YES)

El fichero lo acabo de crear yo mismo. Es un f�sico con claves y no tiene
opciones de compilaci�n ex�ticas.

Que tiene que ver el journal?

Message . . . . :   Member FILE not journaled to journal *N.
Cause . . . . . :   Member FILE file FILE in library LIBRARY is not
  journaled to journal *N in library *N for commitment definition 88.

    The journal specified is used by commitment definition 88. If *N is

  specified for the journal, the file is not journaled. If the file is a

  logical file, all based-on physical files may not be journaled to the
same
  journal as required by commitment control.

Recovery  . . . :   Ensure the file being opened is journaled. For logical

  files, make sure that the based-on physical files are journaled to the
same
  journal.

Puede ser que el SQL se este peleando con el COMMIT?

Alguien tiene alguna idea de que puede estar pasando?

Gracias
Carlos




_____________________________________________________________________________________


Advertencia legal:

Este mensaje y, en su caso, los ficheros anexos son confidenciales,
especialmente en lo que respecta a los datos personales, y se dirigen
exclusivamente al destinatario referenciado. Si usted no lo es y lo ha
recibido por error o tiene conocimiento del mismo por cualquier motivo, le
rogamos que nos lo comunique por este medio y proceda a destruirlo o
borrarlo, y que en todo caso se abstenga de utilizar, reproducir, alterar,
archivar o comunicar a terceros el presente mensaje y ficheros anexos, todo
ello bajo pena de incurrir en responsabilidades legales. El emisor no
garantiza la integridad, rapidez o seguridad del presente correo, ni se
responsabiliza de posibles perjuicios derivados de la
captura,incorporaciones de virus o cualesquiera otras manipulaciones
efectuadas por terceros.


Disclaimer:

This message and any attached files transmitted with it, is confidential,
especially as regards personal data. It is intended solely for the use of
the individual or entity to whom it is addressed. If you are not the
intended recipient and have received this information in error or have
accessed it for any reason, please notify us of this fact by email reply
and then destroy or delete the message, refraining from any reproduction,
use, alteration, filing or communication to third parties of this message
and attached files on penalty of incurring legal responsibilities. The
sender does not guarantee the integrity, the accuracy, the swift delivery
or the security of this email transmission, and assumes no responsibility
for any possible damage incurred through data capture, virus incorporation
or any manipulation carried out by third parties

<<attachment: pic05705.gif>>

Responder a