gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [open-cobol-list] Re: 0 bytes in Cobol strings


From: David Korn
Subject: Re: Re: [open-cobol-list] Re: 0 bytes in Cobol strings
Date: Tue Apr 6 11:27:23 2004

> I don't want to implement this kind of extension.
> 
> The standard way of writing the null character would be to use
> X'' literal like this:
> 
>    VALUE '...' & X'000000000C'.
> 
> However, I haven't implemented the `&' operator (literal
> concatenation).  Gee.
> 
> In any event, \0 is a valid alphanumeric character, so
> I'll fix the compiler.
> 
> Keisuke
> 

If the compiler can handle
                VALUE '...' & X'000000000C'
then I can modify the program that copied files from MVS to put it into
this format.

Can't you just use
                VALUE '...' & X'00'
to represent a single 0 byte?

David Korn
address@hidden


reply via email to

[Prev in Thread] Current Thread [Next in Thread]