Cant get HTTPAPI to work
Posted: Wed Mar 29, 2023 3:54 pm
Hey everyone,
I'm having an issue getting HTTPAPI to work on our system. I have everything installed and in LIBHTTP. However, I can't even access any of the code because I keep getting an RNF0273 error, "Compiler not able to open the /COPY or /INCLUDE file; directive ignored." Here is some of my code:
Have we somehow installed it wrong or am I missing a setting? It will compile without /copy directive so I'm guessing the bnddir is correct. I'm a fairly new RPGLE programmer so if someone could help that'd be great.
I'm having an issue getting HTTPAPI to work on our system. I have everything installed and in LIBHTTP. However, I can't even access any of the code because I keep getting an RNF0273 error, "Compiler not able to open the /COPY or /INCLUDE file; directive ignored." Here is some of my code:
Code: Select all
ctl-opt option(*nodebugio) dftactgrp(*no) bnddir('LIBHTTP/HTTPAPI');
dcl-f APITEST01D workstn indds(indicators);
dcl-ds indicators len(99);
EXIT ind pos(7);
end-ds;
dcl-pr cmd extpgm('QCMDEXC');
cmd char(200) const;
len packed(15:5) const;
end-pr;
dcl-s url varchar(100);
dcl-s header varchar(100);
/copy qrpglesrc,httpapi_h