How to Add an Apostrophe in CL AS/400

104 18
    • 1). Enter the message normally, enclosing it in single quotes.

    • 2). Replace any apostrophes in the message itself with double apostrophes. For example:

      LONGMSG('Enter your computer''s name.')

      The double apostrophe is an escape code instructing the interpreter not to read the apostrophe as indicating the end of the message string.

    • 3). Run the program, and the double apostrophe will appear as a single apostrophe.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.