Passa al contenuto principale

Appendice H: esempi (lunghezze sconosciute)

H.6 Lunghezze sconosciute​

Questa sezione contiene due esempi di data element con lunghezza sconosciuta. I due esempi sono stati presentati nelle sezioni H.2 e H.5, ma con una lunghezza nota anziché sconosciuta.

Data element Set con lunghezza sconosciuta contenente due data element Integer. Il primo intero ha valore 519 (decimale) mentre il valore del secondo è 71 (decimale). (Questi due valori non hanno alcun ordinamento perché appartengono a un insieme.)

   Set     Length   Integer  Length
+--------+--------+--------+--------+--------+--------+
|00001011| 8 0 |00100000| 0 2 | 0 2 0 7 |
+--------+--------+--------+--------+--------+--------+

Integer Length
+--------+--------+--------+--------+
|00100000| 0 2 | 0 0 4 7 |
+--------+--------+--------+--------+

End-of-Con Length
+--------+--------+
|00000000|00000000|
+--------+--------+

Il messaggio di esempio seguente, con lunghezza sconosciuta, aveva Stevens come originatore e Johnson come destinatario. Il messaggio è stato inviato il 14 agosto 1980 alle 10:00 EDT. L'oggetto del messaggio è "Project Deadline" e il messaggio è un promemoria che ricorda che la scadenza è il giorno successivo e che la sezione del rapporto relativa al progetto di cui si occupa Johnson deve essere consegnata a Stevens entro le 15:00 di quel giorno.

 Message   Length    Type
+--------+--------+--------+
|01001101| 8 0 | 0 1 |
+--------+--------+--------+

Field Length FID ASCII
+--------+--------+--------+--------+
|01001100| 0 A | 0 5 |00000010|
+--------+--------+--------+--------+

Length
+--------+--- ---+
| 0 7 |Johnson|
+--------+--- ---+

Field Length FID ASCII
+--------+--------+--------+--------+
|01001100| 0 A | 0 1 |00000010|
+--------+--------+--------+--------+

Length
+--------+--- ---+
| 0 7 |Stevens|
+--------+--- ---+

Field Length FID ASCII Length
+--------+--------+--------+--------+--------+
|01001100| 1 3 | 0 7 |00000010| 1 0 |
+--------+--------+--------+--------+--------+

+---- ----+
|Project Deadline|
+---- ----+

Field Length FID Date Length
+--------+--------+--------+--------+--------+
|01001100| 1 7 | 0 2 |00101000| 1 4 |
+--------+--------+--------+--------+--------+

ASCII Length
+--------+--------+---- ----+
|00000010| 1 2 |19800814-1000-0400|
+--------+--------+---- ----+

Field Length FID ASCII Length
+--------+--------+--------+--------+--------+
|01001100| 6 D | 0 4 |00000010| 6 A |
+--------+--------+--------+--------+--------+

+----
|Don't forget the project report is
+----

due tomorrow. Please have<CrLf>

your section to me by three this

----+
afternoon.|
----+

End-of-Con Length
+--------+--------+
|00000000|00000000|
+--------+--------+