IBM Support

Incorrect characters in Java programs cause syntax errors when compiling

Troubleshooting


Problem

You receive syntax errors when compiling Java™ programs due to bad characters in the programs. This occurs after you download (FTP) the programs from the mainframe to the client workstation.

Symptom

When you look at the Java source on the workstation it contains question marks. For example, sample ClassOne.java contains "byte?? b2 = new byte?1?;". The same code with the question marks can be seen on the mainframe with "ݨ" in place of the question marks.

Following are some of the syntax errors that you can receive on your workstation:

  • not a statement
  • ';' expected
  • cannot resolve symbol
  • symbol : variable b2
[{"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Java","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"4.2;4.1;3.2;3.1","Edition":"","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
CICS Transaction Server

Software version:
4.2, 4.1, 3.2, 3.1

Operating system(s):
z/OS

Document number:
336079

Modified date:
15 June 2018

UID

swg21157844

Manage My Notification Subscriptions