473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C compling Error on IBM 390

I have a C program that is complied fine under DOS and UNIX.

However, the same C program has the following compling error under IBM 390.

TIA.
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
42 |double dot(int n, double a[], double b[])
===========> ..........................ab..........cd.......... ................
*=ERROR===========> a - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> b - CBC3191 The character \xbb is not a valid C source char
*=ERROR===========> c - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> d - CBC3191 The character \xbb is not a valid C source char
Nov 14 '05 #1
5 3534

"shiling zhang" <sh*******@yahoo.com> wrote in message
news:fe**************************@posting.google.c om...
I have a C program that is complied fine under DOS and UNIX.

However, the same C program has the following compling error under IBM 390.
TIA.
----+----1----+----2----+----3----+----4----+----5----+----6----+----7---- +----> 42 |double dot(int n, double a[], double b[])
===========> ...........................ab..........cd......... ................. *=ERROR===========> a - CBC3191 The character \xba is not a valid C source char *=ERROR===========> b - CBC3191 The character \xbb is not a valid C source char *=ERROR===========> c - CBC3191 The character \xba is not a valid C source char *=ERROR===========> d - CBC3191 The character \xbb is not a valid C

source char

Looks like you have different character sets between
DOS/UNIX and IBM 390 (I'm pretty sure the 390 uses EBCDIC.)
You probably need to translate your source file to EBCDIC
for the 390 to eat.

This a platform specific issue, so further more specific
help should be sought in e.g. a forum about your target
platforms and operating systems.
-Mike
Nov 14 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

shiling zhang wrote:
I have a C program that is complied fine under DOS and UNIX.

However, the same C program has the following compling error under IBM 390.

TIA.
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
42 |double dot(int n, double a[], double b[])
===========> ..........................ab..........cd.......... ................
*=ERROR===========> a - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> b - CBC3191 The character \xbb is not a valid C source char
*=ERROR===========> c - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> d - CBC3191 The character \xbb is not a valid C source char


The C/390 compiler usually wants it's source code in EBCDIC-US, which
doesn't have square brackets. You'll have to recode these as trigraphs,
and make sure that you are using the correct EBCDIC. (That you could
type a square-bracket tells me that you're not using EBCDIC-US; you're
probably using coded characterset EBCDIC-INT or one of the national
EBCDIC charactersets).

- --

Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFBUFueagVFX4UWr64RAim9AJ96Lo3GM1y+VM54DdVp93 RvGx8gagCeIYNr
yCe5lpmVF41J830dlOBaGS4=
=crf2
-----END PGP SIGNATURE-----
Nov 14 '05 #3
In <fe**************************@posting.google.com > sh*******@yahoo.com (shiling zhang) writes:
I have a C program that is complied fine under DOS and UNIX.

However, the same C program has the following compling error under IBM 390.

----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
42 |double dot(int n, double a[], double b[])
===========> ..........................ab..........cd.......... ................
*=ERROR===========> a - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> b - CBC3191 The character \xbb is not a valid C source char
*=ERROR===========> c - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> d - CBC3191 The character \xbb is not a valid C source char


This looks like typical EBCDIC code page nonsense. The code was converted
from ASCII to EBCDIC using a different code page than that expected by the
C compiler.

Try finding a local guru that can show you how to make the conversion
from ASCII to EBCDIC in such a way that the C compiler can read your
code properly (or, vice versa, how to tell the C compiler what code page
to use).

As a last resort, use digraphs (if available) or trigraphs for all
the characters that the C compiler fails to recongnise.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Currently looking for a job in the European Union
Nov 14 '05 #4
On 2004-09-21, shiling zhang <sh*******@yahoo.com> wrote:
I have a C program that is complied fine under DOS and UNIX.

However, the same C program has the following compling error under IBM 390.

TIA.
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+---->
42 |double dot(int n, double a[], double b[])
===========> ..........................ab..........cd.......... ................
*=ERROR===========> a - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> b - CBC3191 The character \xbb is not a valid C source char
*=ERROR===========> c - CBC3191 The character \xba is not a valid C source char
*=ERROR===========> d - CBC3191 The character \xbb is not a valid C source char


The characters \xba and \xbb are square brackets in only some code pages.
If the compiler has an option to specify what code page is used by the
source file, specify code page 37.

Because the default code page being used by the compiler is 1047, in which
\xad and \xbd are square brackets, changing \xba to \xad and \xbb to \xbd
may work.
Nov 14 '05 #5
Lew Pitcher <Le*********@td.com> writes:
[...]
The C/390 compiler usually wants it's source code in EBCDIC-US, which
doesn't have square brackets. You'll have to recode these as trigraphs,
and make sure that you are using the correct EBCDIC. (That you could
type a square-bracket tells me that you're not using EBCDIC-US; you're
probably using coded characterset EBCDIC-INT or one of the national
EBCDIC charactersets).


It's likely that the environment also provides a solution other than
trigraphs.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yanwan | last post by:
Hello I am now compling a project, but in one source file of this project, I met this problem. It seems very strange. Below is this source file: ----------------------------------------...
1
by: Baloff | last post by:
Hello can I use the makefile to run my code. say I type $make which does it's thing, then "can I put ./project1 as the last line" to run the program? did how work here but I would like to come up...
4
by: yanwan | last post by:
Hello I am now compling a project, but in one source file of this project, I met this problem. It seems very strange. Below is this source file: ----------------------------------------...
3
by: laxcoburn | last post by:
I am trying to create the Knowledge Base Articl 326340 project. One of the last steps is to "Save all files, and then compile the project". How exactly do I compile the project? Do I do it from...
2
by: Steve B. | last post by:
I have a ADO.Net Library project (adonet.dll) in my VS solution Recently, when I Debug comple I don't get any errrors. When I Release compile to my local share network drive the compiler says it...
0
by: npotnis | last post by:
Hi All, I am trying to compile an existing C++ unamanaged application with the /clr switch in VS.Net 2003, as I need to use managed extensions in the code. In a cpp file I have the following...
2
by: usmita | last post by:
I' m inserting record in database through html & jsp file while compling jsp file this exception occured. what,s the reason behind this- root cause org.apache.jasper.JasperException: Unable...
2
by: Warren Hoskins | last post by:
I'm working on a program, overloading operators, when I compile the program together it works, however when I separate it into the various files such as the .h and the .cpp I'm getting a lot of error...
0
by: rautsmita | last post by:
hello friends , i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.