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: William M. Klein
Subject: RE: Re: [open-cobol-list] Re: 0 bytes in Cobol strings
Date: Tue Apr 6 20:34:56 2004

ACTUALLY, if what you are looking for is null-terminated strings *and* you
want IBM "compatibility" what you should look at is 

   Z-literals 

see:
 
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR20/1.3.9.1.
4 


> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden On 
> Behalf Of David Korn
> Sent: Tuesday, April 06, 2004 1:27 PM
> To: address@hidden
> Cc: address@hidden
> Subject: Re: Re: [open-cobol-list] Re: 0 bytes in Cobol strings
> 
> 
> > 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
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
> 




reply via email to

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