IBM Support

PM81508: The strlib.clip(1) function in an EGL incorrectly strips the trailing blank in additio to the leading blank in an EGL program

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Description
    -----------
    The strlib.clip(1) function in an EGL incorrectly strips the
    trailing blank as well as the leading blank in an EGL program.
    This happens when debugging the EGL program but not with the
    generated Java.
    
    EGL Debug output for a string XXX with two blanks on each end.
    Original string with 2 blanks each side between'?' and '?' is '?
     XXX  ?'
    
    EGL
    ----
    Leading blanks and nulls only clip(1)=         ?XXX?
    
    Java
    ----
    Leading blanks and nulls only clip(1)=         ?XXX  ?
    
    Code snippet
    ------------
    ...
     function main()
      myString char(7)= '  XXX  ';
      syslib.writeStdout('Original string ='+myString+'?');
      syslib.writeStdout('Leading blanks and nulls only clip(1)=
        ?'+clip(myString,1)+'?');
    
     end
    ...
    
    
    Environment
    -----------
    Product name:Rational Business Developer
    Program Version: 8.5.0
    
    Workaround
    ----------
    No workaround is known at this time.
    

Local fix

Problem summary

  • This is a defect.
    
    We did not do type convert before. Add type conversion to fix
    it.
    

Problem conclusion

  • This is a defect.
    
    We did not do type convert before. Add type conversion to fix
    it.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM81508

  • Reported component name

    RATL BUS DEV

  • Reported component ID

    5724S5000

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-28

  • Closed date

    2013-10-28

  • Last modified date

    2013-10-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL BUS DEV

  • Fixed component ID

    5724S5000

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMQ79","label":"Rational Business Developer"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
28 October 2013