Question & Answer
Question
This happens with the Bar Code sample which came from ftp://ftp.software.ibm.com/printers/products/fonts/5688021/csample/bcsu… static char *coibm = "S544-3190 (c) COPYRIGHT " \ ............................a................... =====> a - CBC3277 Syntax error: possible missing ';' or ','? "INTERNATIONAL BUSINESS MACHINES CORPORATION 1988, 1997"; There are other lines on which this error happens. All of those other lines also complain that the equal sign is bad. For example static char numsets Y3¨Ý10¨Ý4¨ = { ................................................a...................
Cause
This could happen to any C source that does not conform to the compiler options MARGINS and SEQ.
Answer
Make sure the compile options SEQ and MARGINS match the source. The solution to this particular problem is to use options MARGINS(1,80), NOSEQ It is a good idea to verify that the record properties are as expected (such as LRECL and RECFM). The compiler is working correctly so no change will be made to it.
Historical Number
RTA000175196
Was this topic helpful?
Document Information
More support for:
z/OS XL C/C++
Software version:
All versions
Operating system(s):
z/OS
Document number:
331717
Modified date:
16 June 2018
UID
swg21142398