| How to FTP Files Using LIBR SUBLIBRARY Views: |
| Introduction: This page exaplains how to FTP files using LIBR sublibrary Views. Sublibrary Views expose all members within a single sublibrary in a specific library. Sublibrary views make those members appear as data files within the sublibrary view subdirectory itself. |
| Sample LIBR SUBLIBRARY View: Assume the Admin has already created the following LIBR SUBLIBRARY View and saved it under the name of SUBLIB.FTPC |
| FTPing Files Using SUBLIBRARY Views: We have already mentioned that members appear as data files in sublibrary view subdirectory itself. Therefore, all we have to do is move into the View Subdirectory, then perform our FTP as follows: 1) Move into the View subdirectory (i.e., issue CD /SUBLIB), then 2) Perfrom the FTP. . Procedure: 1) Move into the View subdirectory (i.e., SUBLIB) To move into the View subdirectroy, do the following: Line-mode clients: issue CD /SUBLIB Graphical clients: click on the subdirectory Icon. Graphical clients automatically issue a DIR as soon as you click on a subdirectory icon. If you are using a line-mode client, as I am, and care to issue a DIR, then here is what you get back from the server: 2) Perform the FTP: You can now upload and download files as you wish |
| ftp> dir x*.* 200 Command okay. 150 File status okay, about to open data connection. -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XECBTAB.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XMTEXAMP.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPCC.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPCCB.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XPOST.A -rw-rw-rw- 1 vse none 0 Aug 12 11:17 XWAIT.A 226 Closing data connection. ftp: 346 bytes received in 0.38Seconds 0.91Kbytes/sec. |
| ftp> ftp> cd /SUBLIB 250 Requested file action okay, completed. |
| XFER = BEGIN TYPE = RCV TGT_AM = PAM TGT_TYPE = DISK TGT_FILE = PRD1.MACLIB restrict acess only to PRD1.MACLIB TGT_RECFM = F TGT_RECL = 80 TGT_DISP = SHR XFER = END |