Your right COMP3 is Packed Decimal I meant USAGE IS COMP or BINARY

On Oct 1, 1:14 pm, Mike Fry <[EMAIL PROTECTED]> wrote:
> BJ wrote:
> > I was tasked with creating this new output record for an existing VB6
> > app. The new record(s) first field cotains a text value that contains
> > a transaction code. The second field needs to be of type
> > binary while the remainder of the record is text. The sample file I
> > received does infact look this way. Field one is text value, followed
> > by what looks like grabage, and then more text.
>
> > If I open this text file in an editor like TextPad (using the binary
> > format), I can see the Hex representation of the second field. I need
> > to create the same type of record format using my values:
> > F2 34 25 E4 06 88 81 01
>
> > I thought I was close to an answer when I looked up UTF8Encoding
> > Class. I can't ask the team who created the sample file because it
> > came from a COBOL application on a mainframe.  I'm sure they used
> > something like:
>
> > Field1    X(06).
> > Field2    X(08) COMP3.
> > Field3    X(10).
>
> > The application is in VB6. I can either modify the application to read
> > (at minimum) a hex string and return a Binary value or create a
> > literal value of this Binary field.
>
> Taking pity....
>
> COMP-3 in COBOL is, of course a Binary Coded Decimal representation of a
> number. Each half-byte contains a single, decimal digit. The sign is
> usually in the last half-byte: 0x'f' = + '0x'e' = -. Your example is
> definitely *not* COMP-3!
>
> --
> Regards,
> Mike Fry
> Johannesburg.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
 <p><a href="http://feeds.feedburner.com/DotNetDevelopment";><img 
src="http://feeds.feedburner.com/~fc/DotNetDevelopment?bg=99CCFF&amp;fg=444444&amp;anim=1";
 height="26" width="88" style="border:0" alt="" /></a></p>
-~----------~----~----~----~------~----~------~--~---

Reply via email to