| 1) List The VTOC: To list, or display, the VTOC, we: a) Move into the view subdirectory, TST000, then b) List the subdirectory. a) Move into the view Subdirectory, TST000: Line mode clients: issue CD /TST000 GUI clients: click on the TST000 subdirectory icon. b) List the subdirectory: Line mode clients: Issue DIR GUI clients: normally issue DIR automatically for you. The server returns all real sequential data sets you are authorized to see: |
ftp> dir 200 Command okay. 150 File status okay, about to open data connection. -rw-rw-rw- 1 vse none 0 Aug 12 11:17 TEST.SAM1.FILE -rw-rw-rw- 1 vse none 0 Aug 12 11:17 TEST.SAM2.FILE -rw-rw-rw- 1 vse none 0 Aug 12 11:17 TEST.SAM3.FILE -rw-rw-rw- 1 vse none 0 Aug 12 11:17 TEST.SAM4.FILE 226 Closing data connection. ftp: 487 bytes received in 0.33Seconds 1.48Kbytes/sec. ftp> |
| 3) Perform FTPs: The VTOC view, as you might have already noticed, provides Listing capabilites. The names you see are the real SAM data set names as they exist in the VTOC. Therefore, we must specify the real data set name on our GETs and PUTs as follows: GET real_SAM_data_set_name tgt_file PUT src_file real_SAM_data_set_name Example 1: Download a SAM data set (TEST.SAM1.FILE) The following snapshot illustrates how to download a SAM file, TEST.SAM1.FILE. Notice that we first fix the data set's attributes using a series of site commands, then we issue our GET command: Example 2: Upload To a SAM data set (TEST.SAM5.FILE): The following snapshot illustrates how to upload to a SAM data set. Again, we first fix our data set attributes then we issue a PUT command. |
| ftp> ftp> cd tst000 move into the tst000 subdirectory. 250 Requested file action okay, completed. ftp> ftp> ftp> literal site parm = off reset previous, and possibly incorrect, values. 200 Command oay. ftp> ftp> literal site recf = fb 200 Command okay. ftp> literal site recl = 300 200 Command okay. ftp> literal site blocksiz = 18000 200 Command okay. ftp> ftp> ftp> get test.sam1.file test.txt GET real_SAM_data_set_name tgt_file_name 200 Command okay. 150 File status okay, about to open data connection. 226-Records sent : 000042606 Bytes dropped: n/a 226 Closing data connection. ftp: 12867012 bytes received in 48.06Seconds 267.73Kbytes/sec. ftp> |
| ftp> ftp> literal site parm = off 200 Command okay. ftp> ftp> literal site recf = v 200 Command okay. ftp> literal site recl = 300 200 Command okay. ftp> literal site blocksiz = 304 200 Command okay. ftp> ftp> ftp> cd /tst000 250 Requested file action okay, completed. ftp> ftp> ftp> put c:\stuff\vse\test.txt test.sam5.file 200 Command okay. 150 File status okay, about to open data connection. 226-Records rcvd : 000022929 Bytes dropped: 000000000 226 Closing data connection. ftp: 2627561 bytes sent in 91.12Seconds 28.84Kbytes/sec. |
| How to FTP Sequential Data Sets Using SAM VTOC Views: |
| Introduction: This page explains how to FTP Sequential data sets using VTOC views. It illustrates how to: 1) List the VTOC. 2) Fix missing, or incorrect, data set attributes, then 3) Perform the FTP. |
| Sample VTOC View: The following VTOC SAM view will be used to demonstrate how to access sequential data sets using a VTOC view. Assume that the administrator already coded the following view and saved it under the name of TST000.FTPC: |
| XFER = BEGIN TYPE = RCV TGT_AM = SAM TGT_TYPE = Index INDEX is a keyword. TGT_VOL = TST000 Excpose this volume's VTOC. TGT_FM = YES The volume is under DASD Space Manager control.. TGT_BUCKET = TST000:1-0 Track One Data sets: DASD manager locates extents... XFER = END |
| 2) Fix missing, or incorrect, data set attributes: We must fix all required data set attributes such as record format, logical record length, block size and soforth. We can also set error option and expirarion info as well. |
| ftp> ftp> literal site parm = off reset previous, and possibly incorrect, values. 200 Command oay. ftp> ftp> ftp> literal site recf = fb 200 Command okay. ftp> literal site recl = 300 200 Command okay. ftp> literal site blocksiz = 18000 200 Command okay. ftp> ftp> |
| ftp> cd /tst000 250 Requested file action okay, completed. |