Using special characters

When invoking the compiler directly, if a string contains a single quotation mark (') it should be written as two single quotation marks ('') as in:
//COMPILE EXEC PGM=CCNDRVR,PARM='OPTFILE(''USERID.OPTS'')'
If you are using the same string to pass a parameter to a cataloged procedure, use four single quotation marks (''''), as follows:
//COMPILE EXEC CBCC,CPARM='OPTFILE(''''USERID.OPTS'''')'
A backslash need not precede special characters in z/OS® UNIX System Services file names that you use in DD cards. For example:
//SYSLIN DD PATH='/u/user1/obj 1.o'
A backslash must precede special characters in z/OS UNIX file names that you use in the PARM statement. For example:
//STEP1 EXEC PGM=CCNDRVR,PARM='/u/user1/obj\ 1.o'