Dan,
It works. Thank you so much for your help!
Sunny

On Oct 26, 11:04 am, Daniel Klein <[email protected]> wrote:
> In that case, you don't need to use an indirect reference, since none of the
> hex characters are system delimiters. This code should work for you just
> fine...
>
> OPEN 'TEST' TO test ELSE STOP
> rec = OCONV("CBB100000000",'MCXA') ;* convert Hex to ASCII
> WRITE rec ON test,'binarydata'
>
> Dan
>
>
>
> On Mon, Oct 25, 2010 at 6:09 PM, JBASE Newbie <[email protected]> wrote:
> > Dan,
> > Thanks for replying.  I would like to put a binary data “11001011
> > 10110001 00000000 00000000 00000000 00000000” which in hex is
> > “0xCBB100000000” into a file.
> > I was trying to use function OCONV(“CBB100000000”, “MCNP”), But it
> > seems doesn’t work.
> > Would you provide a sample code to use an indirect reference to put
> > the binary data into a file?
> > Thanks so much!
> > Sunny
>
> > On Oct 24, 1:53 pm, Daniel Klein <[email protected]> wrote:
> > > You are correct in not introducing binary data into a hashed file item as
> > it
> > > could potentially contain bit patterns that jBASE sees as system
> > delimiters.
>
> > > So, the way I would do it is to use an indirect reference. IOW, store the
> > > binary data in some directory and place the full path to the binary file
> > in
> > > some attribute of the jBASE file.
>
> > > Dan
>
> > > On Fri, Oct 22, 2010 at 3:52 PM, JBASE Newbie <[email protected]>
> > wrote:
> > > > I am currently writing a jbase program for generating a file as
> > > > output. In the program, I need to put some binary data into the output
> > > > file, but I don't know how to do it. If anyone knows about it, please
> > > > help me out. Thank you very much!
>
> > > > --
> > > > Please read the posting guidelines at:
> > > >http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > > > IMPORTANT: Type T24: at the start of the subject line for questions
> > > > specific to Globus/T24
>
> > > > To post, send email to [email protected]
> > > > To unsubscribe, send email to [email protected]
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/jBASE?hl=en-Hide quoted text -
>
> > > - Show quoted text -
>
> > --
> > Please read the posting guidelines at:
> >http://groups.google.com/group/jBASE/web/Posting%20Guidelines
>
> > IMPORTANT: Type T24: at the start of the subject line for questions
> > specific to Globus/T24
>
> > To post, send email to [email protected]
> > To unsubscribe, send email to [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/jBASE?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to