Submitted by Kim Egekjaer on Thu, 09/30/2010 - 00:00
Forums

Some years ago IBM included a new system value called QMAXSPLF. It was introduced with V4R5 (if my memory is correct).

This system value sets the highest value allowed for the spooled file number. Previously the highest value was 9999 (4 digit), but with the introduction of this system value you could then set the value even higher - up to 999999 (6 digits).

This caused some changes in InterForm400 version 2004 (also included in newer versions of course) from which any value of QMAXSPLF is supported.

The most of the changes have been done behind the scenes, but when you call user programs from InterForm400, then it is important, that you update them, so that they support any 6 digit value. This makes it possible to later change from 4 to 6 digit spooled file numbers without any problems. If you want to prepare for this, then it is simply a matter of checking out the demo sources included in source file APISRC in APF3812. The 6 digit supportĀ  caused changes in the FUNKT_8 demo source (as called via option 8=Call program in AFC) and in GETSPLFATR (new source is called GETSPLFA02).

The reason why I take you down this road of memory lane is, that I had a question the other day: Why does my AFC job stop with an error telling me, that the spooled file does not exist, when I clearly can see that it exists?? (Well as you now know, the reason simply was, that he was using old programs that could not handle 6 digit spooled file number - so they where cut off to 4 digits and did not fit the spooled file ID.)

Please check your old sources (especially those called via option 8=Call program) and check that they can handle 6 digits - just to be sure..