Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
OK, which compiler are you using? Please post information from the first page of a compile ... such as
Code:
1PP 5655-G53 IBM Enterprise COBOL for z/OS 3.4.1 Date 0
0Invocation parameters:
TERM,XREF,MAP,OPT,LIST,LIST,NOOFF,NOOPT
0Options in effect:
NOADATA
NOADV
APOST
ARITH(COMPAT)
NOAWO
BUFSIZE(12288)
NOCICS
CODEPAGE(1140)
NOCOMPILE(S)
NOCURRENCY
DATA(31)
NODATEPROC
DBCS
NODECK
NODIAGTRUNC
NODLL
NODUMP
NODYNAM
NOEXIT
NOEXPORTALL
FASTSRT
FLAG(I,I)
NOFLAGSTD
INTDATE(ANSI)
LANGUAGE(EN)
LIB
LINECOUNT(60)
LIST
MAP
NOMDECK
NONAME
NSYMBOL(NATIONAL)
NONUMBER
NUMPROC(NOPFD)
OBJECT
NOOFFSET
NOOPTIMIZE
OUTDD(SYSOUT)
PGMNAME(COMPAT)
RENT
RMODE(AUTO)
NOSEQUENCE
SIZE(MAX)
SOURCE
SPACE(1)
NOSQL
NOSSRANGE
TERM
NOTEST
NOTHREAD
TRUNC(BIN)
VBREF
NOWORD
XREF(FULL)
1PP 5655-G53 IBM Enterprise COBOL for z/OS 3.4.1 Date 0
0 YEARWINDOW(1900)
ZWB
Note the APOST option is set -- I know this option goes back at least to VS COBOL II and it may go back further.
If you don't understand the difference between a single and a double quote mark (a tic mark a.k.a. apostrophe versus quote mark) then your problems are much more basic and you need to start on page one of the COBOL Language Reference (link to manuals at the top of the page) and read until you do understand the difference.