[U2] Reading Binary data from a file...

2006-07-31 Thread George Gallen
ent: Sunday, July 30, 2006 8:04 PM > To: u2-users@listserver.u2ug.org > Subject: U2] Reading Binary data from a file... > > > George Gallen wrote: > > When assigning 1 to System(1017), does that only affect the > > current process, or all processes running on UV? So, does

Re: SpamSlayer Alert: [U2] Reading Binary data from a file...

2006-07-30 Thread Craig Bennett
George Gallen wrote: When assigning 1 to System(1017), does that only affect the current process, or all processes running on UV? So, does System(1017) get reset when the program terminates? or do I need to set it back to normal. The setting is per-process and is reset when the program term

Re: [U2] Reading Binary data from a file...

2006-07-30 Thread Craig Bennett
Ray Wurlod wrote: Prefer UNISEQ and UNICHAR to SEQ and CHAR respectively if there's any possibility that NLS might be enabled. BYTEVAL can be misleading; it only reports the value of a single byte, which may be a lead or trailing byte of a multi-byte character. Wouldn't the raw bytes be exactly

RE: SpamSlayer Alert: [U2] Reading Binary data from a file...

2006-07-28 Thread George Gallen
to:[EMAIL PROTECTED] Behalf Of Craig Bennett > Sent: Thursday, July 27, 2006 7:23 PM > To: u2-users@listserver.u2ug.org > Subject: Re: SpamSlayer Alert: [U2] Reading Binary data from a file... > > > George it does require ASSIGN 1 TO SYSTEM(1017) or UV will > convert any > CHAR(

RE: [U2] Reading Binary data from a file...

2006-07-28 Thread Ray Wurlod
Prefer UNISEQ and UNICHAR to SEQ and CHAR respectively if there's any possibility that NLS might be enabled. BYTEVAL can be misleading; it only reports the value of a single byte, which may be a lead or trailing byte of a multi-byte character. --- u2-users mailing list u2-users@listserver.u2u

RE: SpamSlayer Alert: [U2] Reading Binary data from a file...

2006-07-28 Thread George Gallen
ok. Thanks. George > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Craig Bennett > Sent: Thursday, July 27, 2006 7:23 PM > To: u2-users@listserver.u2ug.org > Subject: Re: SpamSlayer Alert: [U2] Reading Binary data from a file... >

RE: [U2] Reading Binary data from a file...

2006-07-28 Thread George Gallen
L PROTECTED] Behalf Of Craig Bennett > Sent: Thursday, July 27, 2006 7:21 PM > To: u2-users@listserver.u2ug.org > Subject: Re: [U2] Reading Binary data from a file... > > > George, > > use OPENSEQ and READBLK to read the raw data without > conversion then use > BY

Re: SpamSlayer Alert: [U2] Reading Binary data from a file...

2006-07-27 Thread Craig Bennett
f George Gallen Sent: Thursday, July 27, 2006 2:16 PM To: u2-users@listserver.u2ug.org Subject: SpamSlayer Alert: [U2] Reading Binary data from a file... I want to write a little routine that will display the ascii codes of a binary file. (aside from running it through base64 first...) Is there a

Re: [U2] Reading Binary data from a file...

2006-07-27 Thread Craig Bennett
George, use OPENSEQ and READBLK to read the raw data without conversion then use BYTEVAL (not SEQ as this may be affected by NLS) to determine the ASCII character/byte value. Alternatively if you have memory to spare: OPEN "TYPE19FILE" TO FT ELSE STOP ASSIGN 1 TO SYSTEM(1017) ;* Disable UV au

Re: [U2] Reading Binary data from a file...

2006-07-27 Thread George Gallen
g > Subject: Re: [U2] Reading Binary data from a file... > > > This has always confused me. This is the some output of the program > shown. Is that correct, or am I completely missing the barge? > At the risk of a rule violation, I am attaching the picture. > Please forgive. >

RE: SpamSlayer Alert: [U2] Reading Binary data from a file...

2006-07-27 Thread George Gallen
ed the entire image... George > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of George Gallen > Sent: Thursday, July 27, 2006 2:16 PM > To: u2-users@listserver.u2ug.org > Subject: SpamSlayer Alert: [U2] Reading Binary data from a file... > >

Re: [U2] Reading Binary data from a file...

2006-07-27 Thread john reid
This has always confused me. This is the some output of the program shown. Is that correct, or am I completely missing the barge? At the risk of a rule violation, I am attaching the picture. Please forgive. FLD:2 0 33 76 101 119 105 115 47 32 77 99 77 117 114 114 121 47 87 105 108 108 109 97 110

RE: [U2] Reading Binary data from a file...

2006-07-27 Thread David A. Green
In UD you would use: OSOPEN OSBREAD NOCONVERT Thanks, David A. Green DAG Consulting -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George Gallen Sent: Thursday, July 27, 2006 11:16 AM To: u2-users@listserver.u2ug.org Subject: [U2] Reading Binary data

[U2] Reading Binary data from a file...

2006-07-27 Thread George Gallen
I want to write a little routine that will display the ascii codes of a binary file. (aside from running it through base64 first...) Is there a way to open the file and read it is in block by block, and be able to show the SEQ() #'s? I suspect there may be numerous CHAR(255) and CHAR(254)'s. No,