MOVEFILE MOVEFILE Use the MOVEFILE command to VM/3 7 0 to any other device command is:
move data from any
supported by VM/370. device supported
The format of
by
the r I , r linddname I MOVEfile I I r , , I outddna me I I I I I I I , [ (PDS[) ]] , L L .J J L- ____ -:I inddname
outddname
is the ddname representing the input file
ddname is not specified, the default input
is used.
definition. If
ddname, INMOVE, is the ddname representing the output file definition. If
ddname is not specified, the default output ddname, OUTMOVE, is used. PDS moves each of the members of the CMS or TITLIB or of
an OS partitioned data set into a separate CMS disk file,
with a filename equal to the member name and a filetype
equal to the filetype of the output file definition.
1. Use the FILEDEF command to provide file definitions for the ddnames
used in the command. If you use the ddnames INMOVE and OUTMOVE on the FILEDEF commands, then you need not specify them on
the MOVEFILE command line. For example:
filedef inmove disk sys1 maclib b (member stow
filedef outmove disk stow macro
movefile
copies the member STOW from the OS partitioned data set SYS1.MACLIB into the file STOW If you enter:
filedef indd reader
filedef outdd printer
movefile indd outdd
a file is moved from your virtual card reader to your virtual
printer.
2. To copy an entire OS partitioned data set into individual CMS files, you could enter:
filedef test2 disk sys1 maclib b
filedef macro disk
movefile test2 macro (pds
These commands copy members from the OS partitioned data set SYS1.MACLIB or the file SYS1 MACLIB into separate files, each 13Q eMS Command and Macro
MOVEFILE with a filename equal to the membername and a filetype of MACRO. Note that the output ddname was not specified in full, so that eMS assigned the default file definition (FILE ddname).
3. You cannot copy VSAM data sets with the MOVEFILE command.
4 The MOVEFILE command does not support data containing
records. Use of spanned records results in the error DMSSOP036E and an error code of 7.
spanned
message
5. To copy an entire partitioned data set into another partitioned
data set, use the COPYFILE command. If an attempt is made to use
the MOVEFILE command without the PDS option for a partitioned data
set, only the first member is copied and an end-of-file condition
results. The resultant output file will contain all input records,
including the header, until the end of the first member.
If a record format (RECFM), blocksize (BLOCK), and logical record length
(LRECL) are specified on the FILEDEF command, these values are used in
the data control block (DCB) defining the characteristics of the move
operation. If the FILEDEF was issued without a record format or
blocksize specified, these values are determined according to the
defaults listed in Figure 17. If the blocksize was not specified, the
default blocksize is used. If tne logical record length was not
specified, the default logical record length is determined as follows:
for an F or U record format, the logical record length equals the
blocksize; for a V record format, the logical record length equals the
blocksize minus 4. r , Input 1 , Device RECF!! 1------ , Card Reader F , I Card Punch NA2 , , Printer NA2 , I '!'erminal IT , , Tape! IT , , , Disk file RECF!! of , file , , Dummy NA2
i 1----- ddname
Blocksize 80 NA2
NA2 130 3600 Blocksize of
file
NA2
output ddname RECFM NA2
F IT u RECF!! of
input ddname RECF!! of
input ddname RECF!! of
input ddname
Blocksize 80 132 130 Blocksize of
input ddname
Blocksize of
input ddname
Blocksize of
input ddname , lIf the default record format and blocksize are used in a , tape-to-tape move operation and an input record is greater than 36001 , bytes, it is truncated to 3600 bytes on the output tape. , I 2Not applicable. , L-. 1
Figure 17. Default Device Attributes for MOVEFILE Command
section 2. CMS Commands 135
Previous Page Next Page