On 30-Jun-2014 06:41 -0500, Raquel Mezquita wrote:
>
> We want to put an AFPDS spool in the PC using API's. We copy our
> program from
http://www.think400.dk/apier_8.htm.
>
> We execute it, but we get the message CPF33E0 (Incomplete set of
> attributes provided) with QSPCRTSP, it seems that the parameter
> SplfAtt that QUSRSPLA provides, and that we use in the other
> sentence, isn't right.
>
> We have been looking for the right way in other examples and IBM
> pages, but with no luck.
>
> Does anybody know the problem? Thank you!
>
Probably the Bytes-Available is larger than the Bytes-Provides; i.e.
the APIs are being invoked on a newer release than the release on which
the /copied/ source had originally been coded. The example code
referenced\copied used a hard-coded length for receiver storage length;
a length that did not accommodate for possible increases [due to
enhancements] on newer releases. The copied code also had failed to
document [i.e. no _comments_ in the code] where the hard-coded length of
3800 had originated. The IBM i 7.1 (v7r1) docs show 3834+1+7 for the
receiver storage for the Spooled File Attributes, such that a minimum of
3842 may be a requirement. It is possible that increasing the storage
length [variable AtrData in DS SplfAtt] to 4000 would resolve the issue,
without any other change.
--
Regards, Chuck