Re: Binary Zeroes vs Zeroes - Hewlett Packard

This is a discussion on Re: Binary Zeroes vs Zeroes - Hewlett Packard ; My reason for asking is this: I am using DBXBEGIN across multiple databases. In setting up the buffer for the necessary Mode3 DBXBEGIN the TurboIMAGE manual says the trans-id field (pic s9(09) comp) should be set to BINARY ZEROES... So ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Re: Binary Zeroes vs Zeroes

  1. Re: Binary Zeroes vs Zeroes

    My reason for asking is this:

    I am using DBXBEGIN across multiple databases. In setting up the buffer for
    the necessary Mode3 DBXBEGIN the TurboIMAGE manual says the trans-id field
    (pic s9(09) comp) should be set to BINARY ZEROES...

    So I ask the question again -- is binary zero = nulls (low-values) or a
    plain old value of zeroes....??

    Will the INITIALIZE reserved word do the trick or....??

    Brian.


    On Sun, 6 Jul 2008 14:50:25 -0400, Gilles Schipper wrote:

    >In COBOL, I don't think there is any way to identify a field with a
    >"value of nulls" - unless, by definition, it is to check it for a
    >value of binary zeroes, which is "low-values" for a character-defined
    >field (such as PIC XXX) or zero for a binary-defined field (such as
    >PIC 9(4) COMP).
    >
    >I'm sure others will correct me if I'm wrong.
    >
    >
    >At 02:18 PM 08-07-06, Brian Donaldson wrote:
    >>I hope someone knows the answer to this (I'm sure some guru knows this one) --
    >>
    >>
    >>Is binary zeroes = nulls ?
    >>
    >>or is it just a plain old "MOVE ZEROES TO field" ??
    >>
    >>
    >>TIA,
    >>Brian.
    >>
    >>* To join/leave the list, search archives, change list settings, *
    >>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
    >>
    >>
    >>No virus found in this incoming message.
    >>Checked by AVG - http://www.avg.com
    >>Version: 8.0.138 / Virus Database: 270.4.5/1537 - Release Date:
    >>7/6/2008 5:26 AM

    >
    >-------------------------------------------------------------------------------------------------
    >Gilles Schipper
    >GSA Inc.
    >HP System Administration Specialists
    >300 John Street, Box 87651 Thornhill, ON Canada L3T 7R4
    >Voice: 905.889.3000 Fax: 905.889.3001
    >email: gilles@gsainc.com web: http://www.gsainc.com
    >-------------------------------------------------------------------------------------------------
    >
    >* To join/leave the list, search archives, change list settings, *
    >* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


    * To join/leave the list, search archives, change list settings, *
    * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


  2. Re: Binary Zeroes vs Zeroes

    Yes.

    Or

    MOVE 0 TO trans-id

    Or

    MOVE zero TO trans-id

    At 04:46 PM 08-07-06, Brian Donaldson wrote:
    >My reason for asking is this:
    >
    >I am using DBXBEGIN across multiple databases. In setting up the buffer for
    >the necessary Mode3 DBXBEGIN the TurboIMAGE manual says the trans-id field
    >(pic s9(09) comp) should be set to BINARY ZEROES...
    >
    >So I ask the question again -- is binary zero = nulls (low-values) or a
    >plain old value of zeroes....??
    >
    >Will the INITIALIZE reserved word do the trick or....??
    >
    >Brian.
    >
    >


    -------------------------------------------------------------------------------------------------
    Gilles Schipper
    GSA Inc.
    HP System Administration Specialists
    300 John Street, Box 87651 Thornhill, ON Canada L3T 7R4
    Voice: 905.889.3000 Fax: 905.889.3001
    email: gilles@gsainc.com web: http://www.gsainc.com
    -------------------------------------------------------------------------------------------------

    * To join/leave the list, search archives, change list settings, *
    * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


  3. Re: Binary Zeroes vs Zeroes

    Brian asks:

    > So I ask the question again -- is binary zero = nulls (low-values) or

    a
    > plain old value of zeroes....??


    Gilles's answer is correct.

    It can be difficult to talk about "nulls", because words like "null" and
    "NUL" are often used to mean different things, and people often don't
    use them very precisely.

    Specifically with regard to COBOL, its not very meaningful to ask
    whether binary zero is the same as "nulls", since the COBOL language
    doesn't define the term "nulls".

    For the question at hand, if TRANS-ID is defined as PIC S9(9) COMP, then
    MOVE 0 or MOVE ZERO or INITIALIZE will all do the trick.

    Walter

    Walter J. Murray

    * To join/leave the list, search archives, change list settings, *
    * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *


+ Reply to Thread