Problem solve Get help with specific problems with your technologies, process and projects.

Code a single apostrophe in a CL program

How do you code a single apostrophe in a CL program using the CHGVAR command? I'm trying to change a variable using *CAT and *BCAT and I need the first and last character to be an apostrophe. I know this may sound simple, but for some reason, I'm drawing a blank.

I usually use a variable to concatenate by declaring a variable &QUOTE of 1 character with a VALUE(''''). You can then concatenate the quote anywhere in a string.


The Best Web Links: tips, tutorials and more.

Ask your OS/400 questions -- or help out your peers by answering them -- in our live OS/400 discussion forums.

Ask the Experts yourself: Our OS/400 gurus are waiting to answer your questions.

Check out this Search400.com Featured Topic: Top 10 expert tips for OS/400

Dig Deeper on Past Releases