Aller au contenu principal

Exemples

Les exemples suivants devraient clarifier l'utilisation des transactions 'set data type'.

          USER                                             SERVER
---- ------
Set data type '02' (Network ASCII)
------------------------------------->
Store File X
------------------------------------->
File X (in Network ASCII)
------------------------------------->
End of File
------------------------------------->
Acknowledge
<-------------------------------------

Retrieve File X
------------------------------------->
File X in Network ASCII
<-------------------------------------
End of File
<-------------------------------------
          USER                                             SERVER
---- ------
Set data type'03' (EBCDIC)
------------------------------------->
Retrieve File Y
------------------------------------->
Set data type '00' ("bit-stream")
<-------------------------------------
File Y as stored (no conversion)
<-------------------------------------
End of File
<-------------------------------------

Set data type '02' (Network ASCII)
------------------------------------->
Retrieve File Z
------------------------------------->
File Z in Network ASCII
<-------------------------------------
End of File
<-------------------------------------