Backbutton

Example 22

Example 22 - Copying a CANDE file to and from an A-Series ISO9660 Data CD
COPY *SYMBOL/EDITOR/TEXTBOOK AS TEXTBOOK
TO #MYTESTVOLUME(CD,HOSTNAME=LOCAL, SCRATCHPOOL=ASERIES)[T];
IF (T(TASKVALUE)=0) THEN
BEGIN

T(STATUS=NEVERUSED);
COPY TEXTBOOK FROM #MYTESTVOLUME(CD,LOCKEDFILE,SCRATCHPOOL=ISO9660, HOSTNAME=LOCAL)[T];

END;
 
Example22
 
  1. An A-Series CANDE file was copied to an A-Series ISO9660 Data CD, with Extended Record Attributes (XAR), which record the logical file structure.
  2. When the file was copied back, it was by default created as a RECORD STREAM file, which is a file with a FILESTRUCTURE of STREAM, a FRAMESIZE of 8, and a MAXRECSIZE of the number of bytes in a logical record.
  3. The CREATIONDATE and ALTERDATE are also retained.