sponsored links

Collapse

Announcement

Collapse
No announcement yet.

CL program "cuts" a parameter

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • CL program "cuts" a parameter

    Hi,
    Can you please help me to understand why it happens :
    The RPG program, lets say PGMA, works in batch and calls a CL program, say PGMC .
    One of parameters in both programs defined as character 10.
    PGMA sends a 10 length parameter which looks like 'AAAAAAAA ' ( 8 A's , 2 blanks ),
    but PGMC receives it like 'AAAAAAAA' , 8 A's without 2 blanks .
    (It later causes problems in the memory (pointers) in UPDHTMLVAR function and the resulting XML file goes wrong ) .

    My question is why is CL program PGMC cuts 2 blanks of the parameter ?
    Thanks.

  • #2
    Could you show us some source please?
    Regards

    Kit
    http://www.ecofitonline.com
    DeskfIT - ChangefIT - XrefIT
    ___________________________________
    There are only 3 kinds of people -
    Those that can count and those that can't.

    Comment


    • #3
      Code would be good as what you have described seems incomplete at best.

      Comment


      • #4
        We need to know what the CL parameter actually contains after the 8 A's. The last two bytes have to contain something.

        You could add a DMPCLPGM command in your program to see the exact value, including the value in hexadecimal.

        Comment


        • #5
          Are any of your parameters of the varchar variety?

          Comment

          sponsored links

          Collapse

          Working...
          X