We help IT Professionals succeed at work.

Compiling problem SQLRPGLE  **FREE

Hi Experts,

I started my first RPGLE development with a sourcefile on the IFS instead in then QRPGLESRC,
Will takes some time getting used to is, but I think that's the way to go.

Now... In the program I use :
/copy myinclfile1.rpgleinc
/copy /QIBM/ProdData/OS/WebServices/V1/client/include/Axis.rpgleinc

The first is a includefile in the same map. the second... oke I think this is clear.

When I compile to a module it will work flawless.
Now I have changes the RPGLE into SQLRPGLE , and try to crate a module with CRTSQLRPGI
The result is: unknown copymembers.

Because of the map/program structure, it's not desirable to make a /copy to a fixedpath, if must stay relative.

How can I solve that?
Watch Question

Gary PattersonVP Technology / Senior Consultant

For basic ILE RPG memners, here is how /copy and /include directives are handled (check your specific version, as capabilities have changed over time):


For ILE RPG with embedded SQL, you may need to specify the RPGPPOPT() option, as explained here:

Theo KouwenhovenApplication Consultant


Hi Gary,

Finally have time to look further into this, I almost can compile the source :-)
I took a working fullfree RPGLE source on the IFS and change that to SQLRPGLE

Now got the compiler message:

*RNF0202 20   3590 000979+ THE RECORD LENGTH OF THE OUTPUT FILE IS TOO SMALL. THE        /QIBM/ProdData/OS/WebServices/V1+
                           RECORD LENGTH MUST BE AT LEAST 131.                                                          

The line on 3590 is part of an IBM include file and contains the following :

Number ....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8....+....9....+...10 Num Line  Date   Id  Number
  3590+ *          as the connect timeout value. A value less than one will result in the system defau                     4000979

I have no idea what file is to small.