× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: CL parameters over 32 length
  • From: Erwin Donker <erwin.donker@xxxxxxxxxx>
  • Date: Thu, 5 Jul 2018 07:58:15 +0000
  • Ironport-phdr: 9a23:erW65BVHKHS4vUFikP6/2DpnpB3V8LGtZVwlr6E/grcLSJyIuqrYbB2Bt8tkgFKBZ4jH8fUM07OQ7/i+HzRYqb+681k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRoLerpBIHSk9631+ev8JHPfglEnjWwba9zIRmssQndqtQdjJd/JKo21hbHuGZDdf5MxWNvK1KTnhL86dm18ZV+7SleuO8v+tBZX6nicKs2UbJXDDI9M2Ao/8LrrgXMTRGO5nQHTGoblAdDDhXf4xH7WpfxtTb6tvZ41SKHM8D6Uaw4VDK/5KptVRTmijoINyQh/W/XlMJ+kb5brhyiqRx+34Hbb5qYO+Bicq/BZ94WWXZNUthXWidcAo28dYwPD+8ZMOhXtYn8qVoOrR2jDgeiA+PvzDxIiWHs3aYn1OkuDxvG3QIhH9IIqnjbsdL1NKERUe+r1qnF1ijMYO1Q2Tf98ofHaB8hreuKXbJ0aMfcz1QkGQ3CjlWVs4PlPjWV2/wQvGeF6epgVfighHQoqw1rpDivwsEhgZTKiIIN0l3I6Dl1zJwoKdGlUkJ2YcKoHIFOuy2ENIZ6Wt4uT31ytCs41rEKo5y2cDYQxJklyRPTc/KHfJaL7x7/UeucJDh1iXxmdb+6mxm+70mtx+P5W8avzFpGszRJn9zXuX8TyxDe7s6KQeZn8Ei7wzaAzQXT5/lBIUAziKXUNYYswqU1lpoPqUTDGTL2mFnugK+WaEok/u+o5vz6bLrmqJKQKoF5hhv7PKkygMCxA/g1PxQPUWaD9uqyyqfv81X2TrtUlvE2k6/Zv47GJckDu6K1HxVZ3ps+5xqlDzqqzM4UkWcZIF9GYB6HipLmO1DKIPD2F/e/hFGsnS91yPDcMLzhA5PNImLen7fme7Z96FBTyBAowN9C+Z1UDLEBL+jpVU/+rtDYCBs5PxSuw+n7ENV9yp8eWWWXD6+cMaPdrEWI6fgpI+mDeoAZoTL9JuMg5/7vkHA5g0USfa+m3ZQJcny3AvNmI0DKKUbr150EEGsQtwwxQanuoFiDXSRaYXm/Gak743l7DYOqF47FSY3ohJSE3SuhF5tZayZNDVXNWz+8coSIQf4KZy/XJudkkzAeXL6uRskq0hT45yHgzL8yA/DL+ytQmZXl19Vvr7nejw4z83p4CMKe3nulQ2xynmoBSHkw2PYs8gRG1l6f3P0g0LRjHttJ6qYRXw==
  • List-archive: <https://archive.midrange.com/midrange-l/>
  • List-help: <mailto:midrange-l-request@midrange.com?subject=help>
  • List-id: Midrange Systems Technical Discussion <midrange-l.midrange.com>
  • List-post: <mailto:midrange-l@midrange.com>
  • List-subscribe: <https://lists.midrange.com/mailman/listinfo/midrange-l>, <mailto:midrange-l-request@midrange.com?subject=subscribe>
  • List-unsubscribe: <https://lists.midrange.com/mailman/options/midrange-l>, <mailto:midrange-l-request@midrange.com?subject=unsubscribe>

Hi,

We have a CL program that uses 3 input parameters. The first parameter is *CHAR length 50, the second parameter is *CHAR length 44 and the third parameter is *CHAR length 512.

When this CL program is called with values that are smaller than the parameter length (for instance 23 characters for the first parameter), we have noticed that the value of the second parameter gets added tot he first, starting at position 33.

I have searched the internet and have found that this behaviour is intentional. From what I understand, *CHAR parameters are padded with blanks up to 32 characters. Whatever was in memory after position 32 becomes part of the value of the first parameter.

I have also found several suggestions as workaround fort his issue, som y question is nota bout how I can solve this problem. What I really don't understand is why this CL program has worked for months without any problems and then suddenly starts showing this behaviour. The program has not been changed, the calling program has not been changed. We did apply PTF's but this was 1 week before the CL program started showing this behaviour so I don't think the PTF's are causing this. So basically what I want to know is, why does using CL parameters over 32 characters sometimes work, and sometimes not?

Another question out of curiosity, this "problem" has been around at least since 1998 and probably much longer (1998 was the oldest information I found online). I see many people having issues with this, so why has IBM never changed this?

Erwin Donker


De disclaimer van toepassing op e-mail van de gemeente Den Haag vindt u op: http://www.denhaag.nl/disclaimer

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.