Problem with "Fortran carriage control" files

Bent, H.J. erik.bent at prorail.nl
Thu May 8 06:43:56 GMT 2003


Hello,

If I have a file with record attributes "Fortran carriage control" the file
is not correctly copied to my windows machine.
The file has the following format:
00002966.LIS;1                File ID:  (1402,29,4)           
File organization:  Sequential
Record format:      Variable length, maximum 0 bytes, longest 86 bytes
Record attributes:  Fortran carriage control

The first part of the original file:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
1Test

 Wijzigingsdatum: di 24 sep 2002         TEMP:TEST.TRC 

  A             -20.0000        0.0000
  B              20.0000        0.0000     200.00000
 
  1           1      13.70453
  2           6       9.75942
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The file if I open it with notepad:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Test


Wijzigingsdatum: di 24 sep 2002         TEMP:TEST.TRC


 A             -20.0000        0.000

 B              20.0000        0.0000     200.0000


 1           1      13.7045

 2           6       9.7594

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And a dump of the above file:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
0B86:0100  0C 54 65 73 74 0D 0A 0D-0A 0A 57 69 6A 7A 69 67
.Test.....Wijzig
0B86:0110  69 6E 67 73 64 61 74 75-6D 3A 20 64 69 20 32 34   ingsdatum: di
24
0B86:0120  20 73 65 70 20 32 30 30-32 20 20 20 20 20 20 20    sep 2002

0B86:0130  20 20 54 45 4D 50 3A 54-45 53 54 2E 54 52 43 0D
TEMP:TEST.TRC.
0B86:0140  0A 0D 0A 0A 20 41 20 20-20 20 20 20 20 20 20 20   .... A

0B86:0150  20 20 20 2D 32 30 2E 30-30 30 30 20 20 20 20 20      -20.0000

0B86:0160  20 20 20 30 2E 30 30 30-0D 0A 0A 20 42 20 20 20      0.000... B

0B86:0170  20 20 20 20 20 20 20 20-20 20 20 32 30 2E 30 30
20.00
0B86:0180  30 30 20 20 20 20 20 20-20 20 30 2E 30 30 30 30   00
0.0000
0B86:0190  20 20 20 20 20 32 30 30-2E 30 30 30 30 0D 0A 0D
200.0000...
0B86:01A0  0A 0A 20 31 20 20 20 20-20 20 20 20 20 20 20 31   .. 1
1
0B86:01B0  20 20 20 20 20 20 31 33-2E 37 30 34 35 0D 0A 0A
13.7045...
0B86:01C0  20 32 20 20 20 20 20 20-20 20 20 20 20 36 20 20    2           6

0B86:01D0  20 20 20 20 20 39 2E 37-35 39 34 0D 0A 0A              9.7594...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

As you can see the last character of a line is removed. There are to many
linefeeds in the file. The wrong linefeeds are not preceeded by a carriage
return. The formfeed on the first position is correct.

Met vriendelijke groet,

Erik Bent
ProRail
Geodesie & Infradata
Helpdesk Bureau Automatisering
T  030 235 46 00
F  030 235 76 41
E  helpdeskgni.rib at prorail.nl
 

----------------------------------------------------------------------------
Het is mogelijk dat tijdens het opstellen of het transport van dit bericht
fouten zijn ontstaan zodat het bericht onjuist of onvolledig is overgekomen
of verkeerd is geadresseerd. Hiervoor kan Railinfrabeheer BV geen
aansprakelijkheid erkennen. Uitsluitend een document dat door een bevoegd
persoon namens Railinfrabeheer BV is ondertekend is bindend. De inhoud van
dit bericht mag niet openbaar worden gemaakt, vermenigvuldigd of worden
verspreid aan derden. Wij adviseren u om bij twijfel over de juistheid of de
volledigheid contact met ons op te nemen.
----------------------------------------------------------------------------




More information about the samba-vms mailing list