| How To FTP Files Using POWER Class Views: |
| Introduction: This page exaplains how to FTP files using POWER class Views. Class Views expose all entries, or members, in a single class subdirectory within a specific queue (LST, PUN or RDR) subdirectory. In other words, the client is locked into a specific class within a specific queue. Class views make POWER entries appear as members in the class view subdirectory itself. |
| Sample POWER CLASS View: The following sample file view will be used to demonstrate working with POWER files. Assume the administrator already coded the following File View and saved it under the name of PWRZ.FTPC: |
| FTPing File Using Class Views: We have already mentioned that POWER entries appear as members in the class 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 /PWRZ), then 2) Perfrom the FTP. . Procedure: 1) Move into the View subdirectory (i.e., PWRZ) To move into the View subdirectroy, do the following: Line-mode clients: issue CD /PWRZ 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 200 Command okay. 150 File status okay, about to open data connection. -rw-rw-rw- 1 vse none 0 Aug 12 11:17 LIBR.22214 -rw-rw-rw- 1 vse none 0 Aug 12 11:17 LIBR.22452 226 Closing data connection. ftp: 183 bytes received in 0.33Seconds 0.55Kbytes/sec. ftp> |
| tp> ftp> cd /PWRZ 250 Requested file action okay, completed. |
| XFER = begin TYPE = RCV TGT_AM = SAM TGT_TYPE = POWER TGT_FILE = Q=LST,C=Z <<== Lock the client to class Z in LST queue. TGT_RECL = 80 TGT_DISP = H <<<--- MUST CODE, or OVERRIDE, on uploads to LST or PUN queues.... XFER = end |
![]() |