Bin mittlerweile weitergekommen. Das Programm spring mit einem Status "51002" aus dem Programm wenn ich den Cursor öffnen will. Dh. "SQL package &1; in &2; not found."
Ich habe herausgefunden das bei ILE RPG Programmen beim Compilieren wichtige Variablen gesetzt werden.
PHP-Code:
*
      *
      *  
To compile:
      *
      *             
CRTSQLRPGI PGM(XXX/SQL001RGSRCFILE(XXX/QRPGLESRC)
      *
      *
      * 
COMPILINGIn order to compile this program you will need
      
*            to use options which allow it to work correctly
      
*            between machinesThese options are---
      *
      *               
COMMIT = *NONE
      
*               RDB    Machine name that you will connect to.
      *               
DLYPRP = *YES
      
*               SQLPKG The name library that you want to
      
*                        use for the packageThis will put the
      
*                        package on the RDB machine that you
      
*                        specify.
      * 
Die Frage ist nur wie ich SQLPKG bei VARPG setze, denn darin liegt anscheinend mein Fehler.

Gruß Martin