You will need to put double-single quotes around your quotes.
DCL VAR(&TEST) TYPE(*CHAR) LEN(5)
CHGVAR VAR(&TEST) VALUE('''abc''')
This will produce a quoted value in the variable test 'abc'
================================== MORE INFORMATION ON THIS TOPIC ==================================
The Best Web Links: tips, tutorials and more.
Ask your programming questions--or help out your peers by answering them--in our live discussion forums.
Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
This was first published in February 2004