[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Hex Value 1A (ascii(sub)) triggers #end-file flag



Jason -

1.  'sub' probably stands for subscript.  (Just a guess!)
2.  Don't know.
3.  If you are reading each line into separate fields,
     try reading the line into 1 field, then substring
     it out into separate fields.

i.e., instead of
        read 1 into $name:30 $address:50 #rate:2

try
        read 1 into $BigString
        do Substring-BigString
                (let $name = substr($BigString,1,30)... etc.)

Hope this helps.

> -----Original Message-----
> From: Jason Maurer [SMTP:jmaurer@NAVIANT.COM]
> Sent: Tuesday, August 21, 2001 11:13 AM
> To:   SQR-USERS@list.iex.net
> Subject:      Hex Value 1A (ascii(sub)) triggers #end-file flag
>
> I am reading in a flat data file that contains the Hex value 1A which
> translates into the ascii character "sub".  This is triggering the
> #end-file
> flag to become true and the program stops reading the input file.
>
> 1. Does anyone know what the ascii character "sub" stands for?
> 2. Does anyone know what other Hex values might also trigger the #end-file
> flag to become true?
> 3. Does anyone know how to get around this?
>
> Thanks
>
> Jason