Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the various concatenation operators in a CL program?

0
Posted

What are the various concatenation operators in a CL program?

0

The *CAT operator concatenates two character strings. Blanks are included in the concatenation. For example: ABC *CAT DEF becomes ABCDEF ‘ABC ‘ *CAT ‘DEF ‘ becomes ‘ABC DEF ‘ -The *BCAT operator truncates all trailing blanks in the first character string; one blank is inserted, then the two character strings are concatenated. Leading blanks on the second operand are not truncated. For example: ABC *BCAT DEF becomes ABC DEF ‘ABC ‘ *BCAT DEF becomes ‘ABC DEF’ -The *TCAT operator truncates all trailing blanks in the first character string, then the two character strings are concatenated. All leading blanks on the second operand are not truncated. For example: ABC *TCAT DEF becomes ABCDEF ‘ABC ‘ *TCAT DEF becomes ‘ABCDEF’ ABC *TCAT ‘ DEF’ becomes ‘ABC DEF’ ‘ABC ‘*TCAT ‘ DEF’ becomes ‘ABC DEF’ -All blanks that surround the concatenation operator are ignored, but at least one blank must be on each side of the reserved value operator (*CAT, *BCAT, or *TCAT). If multiple blanks are wanted in t

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123