Backbutton

Example 52

Example 52 - Using the MOUNT utility function to verify an Archive Volume copied from the network
    COPY *METALOGIC/COPYWRITE                                                     
      TO #MYTESTVOLUME(CD,HOSTNAME=CPNTA,                                         
                       USERCODE='anonymous',AUTOUNLOAD=ON)[T];                    
    IF (T(TASKVALUE) = 0) THEN                                                    
    BEGIN                                                                         
      T(STATUS=NEVERUSED);                                                        
      COPY [FTP] #MYTESTVOLUME(FTPSTRUCTURE=FTPFILE,FTPTYPE=IMAGE)                
        FROM DISK(HOSTNAME=CPNTA,USERCODE='anonymous')[T];                        
      IF (T(TASKVALUE) = 0) THEN                                                  
        RUN *METALOGIC/COPYWRITE("MOUNT " & MYTESTVOLUME);                        
    END;                                                                          
 
In this example, the response from COPYWRITE was,

(METALOGIC)FRED on SUPPORT (PACK) has LMCD file system, and is PROMBURNERDATA

 
  1. When a CD volume image is copied using FTP, the copy must specify FTPSTRUCTURE=FTPFILE, FTPTYPE=IMAGE, to ensure a binary image is transferred.
  2. CD-ROM archive volumes are always a multiple of the ISO9660 sector size (2048 bytes).
  3. When an archive volume file is copied from the network using FTP, the FILEKIND is DATA, and COPYWRITE will reject it as not PROMBURNERDATA.
  4. The MOUNT <filetitle> utility function checks the volume can be mounted, and if so changes the FILEKIND to PROMBURNERDATA.