+ Reply to Thread
Results 1 to 5 of 5

Thread: Alphanumeric field size limit

  1. #1
    Guest.Visitor Guest

    Default Alphanumeric field size limit

    Hi all, Sometime back I came across an article on how to trick the RPG compiler by using arrays to define fields greater than the 32 K limit. If someone out there has either the article or has been able to find a work around for this problem please respond. I am trying to define an alphanumeric field > 32 K in size. Any help in the matter will be greatly appreciated. Thanks in advance. Ram

  2. #2
    Guest.Visitor Guest

    Default Alphanumeric field size limit

    The signature is computed from the exported names of the procedures and the sequence they are in. If you change a name or change the sequence of names, the signature changes. What the LVLCHK(*NO) does is creates a signature of 0. So, no matter what names you add or change it remains 0. The actual signature check is still done. So if you had a computed signature before, it will not match 0 and you will get a level check. You can recompile all the programs that call the service programs so they have a new signature of 0 or you can create multiple signatures for the service program. The STRPGMEXP with PGMLVL(*CURRENT) will be the signature used when you rebind a program that calls the service program. If you have an additional STRPGMEXP with just the old modules listed, it will generate an entry table with the old signature and the old programs will run.

  3. #3
    Guest.Visitor Guest

    Default Alphanumeric field size limit

    Jim wrote: The STRPGMEXP with PGMLVL(*CURRENT) will be the signature used when you rebind a program that calls the service program. If you have an additional STRPGMEXP with just the old modules listed, it will generate an entry table with the old signature and the old programs will run. Jim, Thanks for the information. I've just learnt that a service program can have more than one signature. Adding the extra Export block with the original modules only worked great. David

  4. #4
    Guest.Visitor Guest

    Default Alphanumeric field size limit

    Ram, You can allocate a little less than 16M of contiguous storage using ALLOC in RPGIV. You can then work with your data using basing pointers and variables. Some of the C functions may also come in handy. They are MemSet and MemCpy. These allow you to change the value of an area using pointers. David Morris

  5. #5
    Guest.Visitor Guest

    Default Alphanumeric field size limit

    David, If you decide to use binding source to specify multiple signatures, be sure and add your new exports at the end of the current block. The ordinal value of the current block is used to determine what to call in previous blocks of exports. This makes it easy to rename a procedure without recompiling everying, but it make is impossible to delete a procedure without at least supplying a dummy to take its place in the current block. David Morris

+ Reply to Thread

Similar Threads

  1. CPF3797 - SIZE LIMIT EXCEEDED
    By David Abramowitz in forum General
    Replies: 6
    Last Post: 05-25-2005, 01:21 PM
  2. TechTip: SQL--Limit the Size of Your Result Set
    By MCWebsite.Staff in forum SQL
    Replies: 2
    Last Post: 02-23-2004, 08:13 AM
  3. Size limit on Folders?
    By tim.shafar@fiserv.com in forum System Administration
    Replies: 0
    Last Post: 08-07-2001, 06:59 AM
  4. QTEMP Size limit
    By Guest.Visitor in forum IBM i (OS/400, i5/OS)
    Replies: 0
    Last Post: 07-10-2001, 08:47 AM
  5. Alpha numeric field size limit
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts