Appendix C: Using FTP 137
Table 34 FTP operations reference: workstation to DMS
Action | Command sequence |
|
|
Get an ASCII file from the DMS | WS> ascii |
| WS> get file_name |
| where |
| file_name is the name of the file on the DMS that you want |
| to get. If the file name is in lowercase, use single quotation |
| marks around the name (including forward slashes). |
| The above command sequence |
| • sets the transfer type to ASCII |
| • gets the file from the current directory on the DMS |
| Because the workstation has no concept of record length, |
| the logical record length does not have to be set. |
|
|
Send an ASCII file to the DMS | WS> ascii |
| WS> site LRECL 132 |
| WS> put file_name NEW_FILE_NAME |
| where |
| file_name is the name of the file on the host node. |
| NEW_FILE_NAME is the target file name on the DMS. |
| If file_name is in uppercase, new_file_name is optional |
| WS>put FILE_NAME. |
| The above command sequence |
| • sets the transfer type to ASCII |
| • sets the logical record length to 132 bytes |
| • puts the file in the current directory of the DMS |
|
|
Send a LOAD68K file to the DMS | WS> binary |
| WS> put file_name.load68k |
| where |
| file_name is the name of the file on the host node. |
| FILE_NAME$LD is the name of the target file on the DMS. |
| The above command sequence |
| • sets the transfer type to binary |
| • puts the file in the current directory of the DMS |
|
|
(Sheet 2 of 3) |
|
|
|