sponsored links

Collapse

Announcement

Collapse
No announcement yet.

String Concatenation

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

  • String Concatenation

    Hi all,

    Can some body please explain me the way to use |> ''''|< signs instead of *cat operation in a CL program.

    Thank you

  • #2
    Re: String Concatenation

    Also can you all please explain me the difference and the usage between *CAT, *BCAT & *TCAT.

    All these time i was searching about this thing and got fed up.
    If you can please give me a link to refer. That also would be great.

    Thanks in advance

    Rananga.

    Comment


    • #3
      Re: String Concatenation

      *CAT or || Joins two strings "as is"
      *BCAT or |> Joins two strings with a single blank space between
      *TCAT or |< Joins two strings trimming first string

      'String One ' *CAT 'String Two ' Yields 'String One String Two '
      'String One ' *BCAT 'String Two ' Yields 'String One String Two '
      'String One ' *TCAT 'String Two ' Yields 'String OneString Two '

      Comment


      • #4
        Re: String Concatenation

        Wow, spaces removed by HTML process...
        PHP Code:
        'String One     ' *CAT 'String Two     ' Yields 'String One     String Two '
        'String One     ' 
        *BCAT 'String Two     ' Yields 'String One String Two '
        'String One     ' 
        *TCAT 'String Two     ' Yields 'String OneString Two ' 

        Comment


        • #5
          Re: String Concatenation

          Thanks a lot mark.
          Your explanation was great

          Have a nice day


          Rananga

          Comment


          • #6
            Re: String Concatenation

            FYI: You can find all kinds of answers here http://publib.boulder.ibm.com/infoce...v5r4/index.jsp

            Download the CL, RPG, and other manuals as needed.

            Comment

            sponsored links

            Collapse

            Working...
            X