cancel
Showing results for 
Search instead for 
Did you mean: 

IBM i: Activation of SRVPGM LIBSAPNRFC will create missing QINLINE Joblog

Former Member
0 Kudos

On IBM i when I call an ILE CL program in a interactive job which has the service program LIBSAPNRFC (SAP NetWeaver RFC SDK 7.50) bound, it will show the message "Press ENTER to end terminal session." after reclaiminig the activation group of the ILE program.

When I call this ILE program in a batch job (SBMJOB) the joblog includes the message CPF4101:

To module . . . . . . . . . : QC2SMOPN
To procedure . . . . . . . : _C DM open file
Statement . . . . . . . . . : 10
Message . . . . : File QINLINE in library *LIBL not found or inline data
file missing.
Cause . . . . . : The file was not opened. The reason code is 03. The
reason codes and their meanings are as follows: 01 - The library does not
exist. 02 - The file does not exist. The library does exist. 03 - The file
does not exist. The library specified as *LIBL. 04 - The file was saved

Can I avoid these messages?

I know that i can do OVRDBF STDIN to a dummy file. But can I avoid this without OVRDBF?

I am using SAP NetWeaver RFC SDK 7.50 patch level 3, IBM i 7.3.

Example ILE CL program:

/* CRTCLMOD MODULE(QGPL/CALLSAP) SRCFILE(QGPL/QCLSRC) */
/* CRTPGM PGM(QGPL/CALLSAP) BNDSRVPGM((QGPL/LIBSAPNRFC)) */
/* ACTGRP(X) */
PGM

IF COND(1 *EQ 2) THEN(CALLPRC PRC('RfcInit'))

ENDPGM

Accepted Solutions (0)

Answers (3)

Answers (3)

The two SAP Notes to describe the usage of SAP NW RFC SDK on IBM i are SAP Note 2573953 and SAP Note 1097997. You only need the library QADRT when compiling for the Unicode version of the NW RFC SDK. For compiling with the ILE EBCDIC version or to execute a program (in both cases), you don't need the QADRT library.

The error message CPF4101 regarding QINLINE is most likely not indicating a problem. If you use STDIN in an ILE C/C++ program, you can override the file QINLINE to an input file of your choice. If you don't override QINLINE, the C/C++ program tries to open QINLINE in order to read from STDIN, but a file with that name does not exist in the system. This is not an error, just "noise".

Unfortunately we only have examples to use the SDK with C/C++. Due to the dynamic structure of the parameters, coding in COBOL or RPG may be significantly more difficult.

Kind regards,

Christian Bartels.

Former Member
0 Kudos

Thanks for your answer.

I already know this sap note. But there are no special instructions regarding CL, RPG or Cobol compiling/binding. Also the IBM link http://www-03.ibm.com/servers/enable/site/asciirt/devkit.html in the sap note is not valid anymore. I have no library QADRT installed.

Is the ASCII library necessary for the Unicode version of SAP NetWeaver RFC SDK 7.50? It was used for the old IBM i ASCII version.

With other SRVPGMs I have not such a issue.

Sriram2009
Active Contributor
0 Kudos

Hi Matthias

Just refer the sap note 2573953 it may help you.

Regards

SS