![]() |
Displaying Tape Files
CFS Display mode will also process tape files cataloged as FCBTYPE=SAM. The tape file should be selected into a file list, for example using the FCBTYPE:TAPE option. The Action Code D should then be entered for the required tape file. A Mount request will be issued at the console.
Uncataloged tape files can also be displayed. Proceed as follows:
1) /FILE file,LINK=DISP,FCBTYPE=SAM,VOLUME=..., DEVICE=..,STATE=FOREIGN
2) Select the file just cataloged into a file list. This is easiest achieved by entering the name directly into the FILENAME-SELECT field. Then enter the Action Code D in the respective field.
In the normal Display mode, the tape is rewound and re-read before each screen change that affects a record range already read (e.g. H, NH, DS, DW commands etc.). The tape will not be rewound if SR (Single Record) mode is set.
Using the W (Write) or S...=W (Search and Rewrite) commands, a selection of tape records can easily be transfered to a disk file.
Editing Tape Files
A tape file with FCBTYPE=SAM (Recform=V/F/U) can also be edited after converting it to a temporary ISAM file.
Procedure:
1) If the tape file is not yet cataloged, issue the following command:
/FILE file,LINK=DISP,FCBTYPE=SAM,VOLUME=..., DEVICE=..,STATE=FOREIGN
2) Select the file via the Selection mask, and enter Action Code D in the respective field.
3) Convert the tape file to a temporary ISAM file with the IS command.
4) The temporary file will automatically be displayed in Modify mode, and can then be processed with all the usual editing commands.
5) Convert the temporary ISAM file back to its original tape format after editing with the SAM command, or by pressing the K1 key.