• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Himai Minh

Fortran 4 related. What would the act of creating a new record look like in binary

Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A FORTRAN 4 program was written this way for 7049 computer when creating a new record.I am dealing with 36 bit words.
WRITE(8)  NTYPE,  NREC,  MM,  NN, ...plus 3 other items separated by commas not mentioned because unrelated to question, to equal 8
resulted in a binary file that looks like this when written as octals:
000511000000 000000000001 000000000001 000000000005 000000000200 ...plus 3 other 36bit words displayed as octals to equal 8 not mentioned because unrelated to question.  The last 4 words when converted to decimal are 1,1,5 and 128 which was expected. The first word is the mystery.

Now the Question:
Why might WRITE(8) generate a "000511000000"  in the beginning of a new record?
When I convert it to a decimal or just 000101001001000000 it seems to have no particular significance.
To those who understand fortran do you know what "000511000000" might mean at the start of creating a new record when looked at in the binary or in this case octal?  Maybe its just a marker of some type thats common? If so are their other marker types I should know about when examining binary files?
    Bookmark Topic Watch Topic
  • New Topic