![]() |
Keep Creation Date during Copy etc. (ONXCOPY/MOVE/REORG .. ,KD)
ONXREORG ['str1'='str2'] [, :x: | vsn/device | PAD=nn | NR | SPACE=(xxxx,yyy) | KD ]
The marked libraries/ISAM files will be reorganised by copying all elements/records to a new library/file. For a full description of all of the REORG Variable Action parameters, see page 5-.
KD Keep Date. The reorganised files/libraries will retain the Creation Date of the original file, and not be stamped with todays date. The KD option is invalid if the files/libraries are reorganised on a private volume.
The KD option will also result in the Backup Version # and the Save Version # of the file being retained. This is important for the Archive status.
--------------------------------------------------------------------------------
ONXMOVE :x: [, KD]
:x: The files marked by the user with X will be moved to the specified Public Volume Set under the same name.
KD Keep Date. When moving to the new Pubset, the files will retain the original Creation Date value. The KD option is invalid if files are moved to a private volume.
If KLA mode is activated (KLA command), the Last Access Date of the input and output file will be retained.
--------------------------------------------------------------------------------
ONXCOPY ':x:$userid1.'=':y:$userid2.' [, STD] [, KD]
This variant of the COPY Variable Action is only applicable if the files were selected by entering FSTAT $user-id1. in the FILENAME-SELECT field, or by setting the CFN option (see page 18-).
The Variable Action will result in all files marked with X being copied from $userid1. and PVS :x: to $userid2. and PVS :y:.
ONXCOPY '' = '$userid.' [, vsn/device | :x: ] [, STD] [, KD]
Th prerequisite for this Variable Action is that the user has selected files from a particular userid by specifying a value in the USER-ID field.
The files marked with X will be copied from the selected userid to $userid specified in the ONXCOPY statement. The files will thus retain their names across different userids.
vsn/device The copied files will be created on the specified private devices.
:x: The files will be copied to the specified Public Volume Set.
STD Note: When copying files under TSOS, CFS will issue all necessary passwords. The ACCESS=READ and RETPD>0 attributes of the files to be overwritten will also be temporarily reset by CFS for the purposes of the copy. The same is true for the ONXMOVE Variable Action.
The STD operand will cause the current protection attributes of the files not to be circumvented when performing the ONXCOPY Variable Action under TSOS. This means that only those files for which the user has issued a valid password will be copied. In addition, files will not be copied if the target file name already exists, or if they are cataloged as ACCESS=READ or RETPD>0.
KD Keep Date. When copying the file, the Creation Date of the original file will be transferred to the target file. The target file will thus have the same Creation Date as the original file, and not today's date, as normal. The KD option is not valid if files are copied to a private volume.
If KLA mode is activated (KLA command), the Last Access Date of the input and output file will be retained.
Examples: $ABC. = selected userid.
ONXCOPY''='$USER2.' $ABC.name --> $USER2.name
ONXCOPY':X:'=':Y:' :X:$ABC.name --> :Y:$ABC.name
ONXCOPY''='A.' $ABC.name --> $ABC.A.name
ONXCOPY''='' $ABC.name --> name (own userid)
ONXCOPY' '=.X' $ABC.name --> $ABC.name.X
Note:
The automatic circumvention of passwords is only possible in BS2000 systems without password encryption (ENCRYPT=NO).
ONXCOPY '$userid.' | ':x:'
The marked files will be overwritten by identically-named files from $userid. , or from the PVS :x:.
$userid. Userid of the source files.
:x: Public Volume Set of the source files.
Examples: selected files: PVS :R: own userid.
ONXCOPY':X:' :X:name --> :R:name
ONXCOPY'$USER2.' $USER2.name --> :R:name