You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!
Post subject: SPL2STMF error CPF6DF9 buffer too small
Posted: Mon Jun 30, 2008 5:18 pm
Joined: Mon Jun 30, 2008 5:07 pm Posts: 2
I am using SPL2STMF/TIFF2PDF to convert AFPDS spools in PDF. Everything works fine, but with some spools in SPL2STMF I get the message CPF6DF9 buffer too small. These spools have 2 or 3 pages and apparently are similiar to other that are converted fine, and I don't know why they gave this error. I am using SPL2STMFRP version '0-03 00-03-18'. Can you suggest me what can I do? Thanks in advance, Giuseppe
Post subject: Re: SPL2STMF error CPF6DF9 buffer too small
Posted: Mon Jul 07, 2008 2:23 pm
Site Admin
Joined: Tue Jan 29, 2008 3:09 am Posts: 47
Sorry for late reply.
According to DSPMSGD command, CPF6DF9 indicates:
Message . . . . : Transformed data buffer too small.
Cause . . . . . : The transformed data buffer of &2 bytes is too small to hold the &1 bytes of transformed data that is available. Only &2 bytes of data have been copied to the transformed data buffer. The remaining transformed data is lost.
That means you should increase buffer size (200,000) which is defined at line 57 and 233. You can try DEBUG(*YES) to determine the buffer size.
> Which is the limit of the buffer size? To prevent future errors can I increase it to 1,000,000 for example?
Actually, buffer size is limited by maximum size of character field of ILE-RPG.
You may set the buffer size to 65535 at maximum.
Note that this modification works on V4R5 or later.
You can specify as much as 32767 if you are using V4R4 or earlier.
See "ILE RPG for AS/400 Reference" -> "Appendix A. RPG IV Restrictions" -> "Character field length".
I've tried to resolve the CPF6DF9 error (buffer too small), but I'm not able to find which variables into the source SPL2STMFRP I have to change in order to increase the size of buffer.
Does anyone can tell me the name of the variables that I have to change, please?
this is an old thread, but we are facing the same problem Giuseppe had. Unfortunately, after compiling the RPG program, we are getting a different error:
CPF3CF2 hptopt = 20
We tried to set the buffer size lower and lower, thinking the problem could be any way related to this, but we finally tried again at 200.000 and the problem persists, so the issue must be related to a compiling problem. We did compile only the RPG (following the readme instructions) by creating the RPGMOD and with CRTPGM command. We get no compiling error, but at runtime we get the above mentioned CPF.
Has anyone else faced the same problem?
By the way, we use a V5R4 with the latest PTF cumulative.
Yes we understand that, but we may hope you can help us anyway In any case, we solved our problem, and that was a very weird issue. After compiling the problem using REXX command, we simply had to disconnect and reconnect. By doing so, the runtime error disappeared. So, for future problems like this, after creating the HPT programs/command using REXX, just disconnect and reconnect to test them.
It seems like you resolved your problem reported 22 Jun 2009 by yourself. I suppose that "disconnect and reconnect" means close and restart 5250 session.
In HPT process, "hptopt = 20" indicated "before start transform" phase. See http://publib.boulder.ibm.com/infocente ... PZHPTR.htm for detail information.
So "disconnect and reconnect" may clear/reset unexpected error condition.
Actually, user feedback is very rare and valuable.
Thanks again and have a good day!
I know you like partecipating people from another thread in your Forum, and i agree that having a web full of questions with no answers is quite useless.
Consider my feedback a "thank you" for your TIFFLIB
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum