Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using QUSRSPLA and QSPCRTSP

174 views
Skip to first unread message

Raquel Mezquita

unread,
Jun 30, 2014, 7:41:55 AM6/30/14
to
Hello everybody!

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 lucky.

Does anybody know the problem? Thank you!

CRPence

unread,
Jun 30, 2014, 12:07:32 PM6/30/14
to
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

Raquel Mezquita

unread,
Jul 1, 2014, 5:25:26 AM7/1/14
to
Thank you Chuck, you are right. We have changed the storage lenght, and it Works!
But I'm a little confussed, because I get a the same spool file. I thougth it was going to be a different one. I don't know how to continue to put it on the PC. Help!!! :-)
0 new messages