FixYa.com
Technical Support, Instructions & Repair Service


Tags:

IBM C400  Multimedia Projector

Using ILE C/400 generated bin data on PC

By Rogers - usenet poster


Has any one out there used C/400 generated bin file on PC?
I have created a binary file on AS/400 IFS using ILE C. The file
contains both numeric data and string data. I have taken care to
translate the string data from EBCDIC to ASCII in my program. When I
transfer this file on PC (using bin option of ftp), the string data is
read correctly by the PC program, however the numeric data is not read
correctly by the PC program. I believe this problem is because the way
PC and AS/400 store bin data differently. PC uses least significant byte
first and AS/400 uses most signifant byte first. I want to know if this
really is the problem or is it something else. If so how should I flip
the bytes of bin data.
Thanks in advance for your help.

Mubashir

This Problem has been added to the Share Your Expertise Page under "My Work Queue".
Solution #1
posted on Aug 11, 2005
Not Rated (0)

Cornish

Cornish - usenet poster

Rank:Apprentice Apprentice
Rating: 0%, 0 votes
Mubashir,

This is something that I do all of the time, so I think you should be
able to accomplish what you want. There are AS/400 binary data formats
that are not compatible with anything I've seen on a PC. This includes
zoned and packed formats. An int on the AS/400 is 4 bytes which is
probably not the length of an int on the PC. But you should be able to
create C short and long numeric data and have that readable on the PC.

HTH,
Patrick



--
IBM AS/400 communications, FTP automation, and network security
software and consulting services.

http://www.patownsend.com

Was this solution helpful? Show your Appreciation by rating it:

Solution #2
posted on Aug 11, 2005
Not Rated (0)

Reynolds

Reynolds - usenet poster

Rank:Apprentice Apprentice
Rating: 0%, 0 votes
What about int, float and double is there any way those generated on
as/400 can be read by PC C programs?
Thanks again.

Was this solution helpful? Show your Appreciation by rating it:

Solution #3
posted on Aug 11, 2005
Not Rated (0)

Ranny

Ranny - usenet poster

Rank:Apprentice Apprentice
Rating: 0%, 0 votes
int, float, and double formats are compatible once bytes are reversed.
For the int formats you do of course need to make sure that the same
length is being used on both ends.

In <36867F20.58C31 @ibm.net>, Mubashir Kazia <k @ibm.net> writes:

Dan Hicks
Hey!!  My advice is free -- take it for what it's worth!
http://www.millcomm.com/~danhi cks

---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---

---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---

Was this solution helpful? Show your Appreciation by rating it:

Can you Help with these Multimedia Projectors problems?

Multimedia Projectors
SCART Video Control box
Help! My husband disconnected... Answer This...
Multimedia Projectors
Screen is turning blue
My screen is turning blue so I... Answer This...
Multimedia Projectors
HELP ME!
We just bought a used... Answer This...
Multimedia Projectors
HP VP6210 won´t turn on at...
Hi, my HP VP6210 Projector... Answer This...
Multimedia Projectors
Sharp Notevision XR-1S...
Hello - sorry to bother you but... Answer This...
Repair Service
Find Multimedia Pro. Repairman Near You:

FixYa does not evaluate or guarantee the accuracy of any information provided through its proposed solutions, posts, or Expert Assistance Sessions. By entering this site you declare you read and agreed to its Terms. You may NOT copy or distribute the content that appears on this site without written permission from FixYa Inc.
© 2005-2008, FixYa, Inc. or its affiliates
When the original poster rates a solution that was given to his own problem, that rating is locked!
X

Are you sure the solution content is Inappropriate?
   
Tech buddies can communicate directly to answer questions. Become a Tech Buddy and have direct access to your favorite expert for FREE!