niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Not Unix » VMS » fr
help format VMS
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
rejoc
*nix forums beginner


Joined: 23 Jun 2005
Posts: 18

PostPosted: Sat Nov 19, 2005 4:47 pm    Post subject: Re: help format VMS Reply with quote

Vincent a écrit :
Quote:
Bonjour,
je dois lire une fichier binaire.

Comme info j'ai :

Brief description of the file :
TYPE : integer binary (VMS)
The type of all variables is integer,DEC binary data format

Quelqu'un peut-il m'indiquer comment marche ce codage ?

mes 2 premiers octets sont E4 01 ( quelle est sa valeur en décimal ?
ces deux octets sont-ils inversés ? )



Merci pour vos infos

Vincent


Si c'est un format integer, alors c'est 4 octets... Si ce que vous

affichez sort de la commande dump de VMS (où les octets de poids fort
sont à gauche), alors E4 est l'octet de poids fort de votre "word" (2
octets).

VMS est "little endian". Si vous lisez le fichier sur une machine du
meme type, prenez les octets 4 par 4 et vous aurez vos entiers. Si la
machine sur laquelle vous lisez est big endian (hpux, aix, ...) , il
faut inverser les octets lus 4 par 4...
Back to top
Vincent
*nix forums beginner


Joined: 07 Jun 2005
Posts: 11

PostPosted: Sat Nov 19, 2005 4:25 pm    Post subject: help format VMS Reply with quote

Bonjour,
je dois lire une fichier binaire.

Comme info j'ai :

Brief description of the file :
TYPE : integer binary (VMS)
The type of all variables is integer,DEC binary data format

Quelqu'un peut-il m'indiquer comment marche ce codage ?

mes 2 premiers octets sont E4 01 ( quelle est sa valeur en décimal ?
ces deux octets sont-ils inversés ? )



Merci pour vos infos

Vincent
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Jan 06, 2009 8:35 am | All times are GMT
navigation Forum index » Not Unix » VMS » fr
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts mailq output format bacilko1 Postfix 0 Tue Oct 03, 2006 12:34 pm
No new posts Does stream I/O support "%a" floating-point format? John Friedland C++ 3 Fri Jul 21, 2006 9:26 am
No new posts to_char number format with optional decimal-point? Martin T. Oracle 3 Thu Jul 20, 2006 10:53 am
No new posts Suggestion needed on data storage format in text file manish PHP 11 Wed Jul 19, 2006 4:28 am
No new posts dos-unix file format? nx2zdk@gmail.com Solaris 7 Tue Jul 18, 2006 1:53 am

Advertising | Read Free Manga Online | Buy Anything On eBay | Mortgage | Secured Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1245s ][ Queries: 20 (0.0502s) ][ GZIP on - Debug on ]