Training Services
Information Technology Services | University of Saskatchewan
Mainframe Computing
Basics
File System Commands
VMS Version*If you do not know how to
connect to a VMS mainframe
using telnet you may want to
review the Getting Started
tutorial before reviewing
this tutorial.How do! manage files?
*VMS has many commands that are used to
view, copy, rename, move and delete files.
* These are the most common file management
commands.
* The command for viewing your file structure
is "dir".
“The command for copying files is “copy”.
* The command for moving and renaming files
is "rename".
* The command for deleting files is "delete".= skyway.usask.ca (1) [default] - QUT/ ={5/ x!
‘File Edit Wiew Setup Keyboard Font Printer Commands Apps Help
B2g/=e/8/a mle
°
"dir" is the command for
listing the contonts of
the current directory.Serene ed =1BIx)
File Edit View Setup Keyboard Font Printer Commands Apps Help
B2o8|>" ~~
The dir command aisplays tho
Tee
eM
ee)
CRG
0 [13,3 [Cemected [tenet Printer: OF Logong: OFF NUM Ready
T T T
0 ) aSerene ed =1BIx)
File Edit View Setup Keyboard Font Printer Commands Apps Help
El eae
«= ineluding the name of
Tee
eM
ee)
CRG
0 [13,3 [Cemected [tenet Printer: OF Logong: OFF NUM Ready
T T T
0 ) aSerene ed =1BIx)
File Edit View Setup Keyboard Font Printer Commands Apps Help
aa & 8l\a |?
When
eae ite
Tea Ue ea Ce
Eten era aia
CRG
80 (13,3 [Connected telnet Printer: Of Logging: OfF NUM Ready
T T T
) ’ aSerene ed =1BIx)
File Edit View Setup Keyboard Font Printer Commands Apps Help
Brita Bau?
Tee
eM
ee) ae
CRG
0 [13,3 [Cemected [tenet Printer: OF Logong: OFF NUM Ready
T T T
0 ) aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Bla|/58\S\a 2
Tee
eM
Printer: OR Legpng:Off [| NUM Ready Zz
T T T
0 ’ 1= 15) x!
Bed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
ER|SH/S\a m|\e?
We OCT
ea
PINE aaa
i
etn aed
CRG
“copy” is the command for copying files. When
copying you must provide the name of the file
to ba copiod and a name for tha now copy of
the file. For example “copy somotile newtilo”.
‘2ixe0 [33,3 [Corected telnet Printer: OF Looping: OFF [OM Ready Zz
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
BtB|/=8/s\a 2
Tee
eM
ae
eCRy
Cert nce
(2ae0 [13,24 [Conected [telnet
T T T
0 ’ 1Bed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
3 |) S| a 2
Tee
eM
Ul After the copy command is completed
PoC U Ca and the dir command fs run...
Tey AT
ee nea
Ge UN eee
Cet eg
(2iee0 [23,3 [Comected [fehnet ——=—Printer: OF Logging: OFF [OM Ready Zz
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
3 |) S| a 2
Tee
eM
eCRy
Comet nae
Tey AT
ee nea
Ge Ne ee Ld
Cet eg
(2iee0 [23,3 [Comected [fehnet ——=—Printer: OF Logging: OFF [OM Ready Zz
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Bla|/58\S\a 2
Tee
eM
eCRy
Comet nae
doloting a file. Tho command noods Uap apa IG FS
inlath aay
the name of the file to be deleted. intra a eid
Printer: OR Legpng:Off [| NUM Ready Zz
T T T
0 ’ 1Bed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
CAL een
roe PINE. PINER CeO
(tt ea a0 Se |
TT
When deleting a file you must also
include @ numbor indicating which cial
Cae
Sci
Vaan
Printer: OR Legpng:Off [| NUM Ready
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
CAL een
roe Lt PINE. PINER CeO
(tt ea a0 Se |
TT
Hl
This dofoto command will delete version 1 i
(the only version) of the tile called olatite
Tata aan
Epi t 0ess
(2ie0 [24,19 [Comected [fehnet —Printer: OF Logging: OFF [OM Ready Zz
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Ura ntl TSE)
a en ema ae
Cee ee
After the delete command is completed
and the dir command is run...
FILE.21 PTS
ice Ge Cauitcims ee
(eC es eh
Cmte
(2aee0 [24,3 [Commected [feet ——=—Printer: OF Loguing: OFF [OM Ready Zz
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Ura ntl TSE)
a en ema ae
Cee ecm Tea
FILE.21 PTS
ice Ge Cauitcims ee
(eC es eh
Cmte
(2aee0 [24,3 [Commected [feet ——=—Printer: OF Loguing: OFF [OM Ready Zz
T T T
) ’ a11x)
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Bogil TSE)
a en ema ae ating
Ct Ce see |
explicit version pusber or wild card required
"rename" is the command for renaming or
moving a filo, Tho rename command noods
the old name and the new name, for
example "rename oldname newname" pu
ronames the oldname file. bd
(2x00 [24,3 [Cormected tenet Printer: OF Legong: OFF [OM Ready Zé
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
ntl TSE)
a en ema ae tae
ee ee CC eee aS
explicit version number or wild card required
FILE.21 PTS
Cauitcims ee
DURCH
(2ie0 [24,26 [Conected [telnet
T T T
) ’ askyway.usask.ca
File Edit Wiew Setup Keyboard Font Printer Commands Apps Help
ER|SH/S\a m|\e?
TR
5 cn
ia an b Cece)
Seoeciier
11x)
ei)
Praga Ta nae | LOGIN
een es ae ee Cah eo SS ao
(iT ae bea
After the rename command is complete
eye
ae uO a
(2x00 [24,3 [Cormected tenet Printer: OF Legong: OFF [OM Ready Zé
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
creo erro!
incre eae i CSB
Gee Os ed
Cae eye
fata Cae
DURCH
Printer: OR Legpng:Off [| NUM Ready
T T T
) ’ aBed
Fie edit View Setup Keyboard Font Printer Commands Apps Heb
Dee Cet TO)
@ LT
As always do not forget
(iT ae bea
to fogout when you are
done with your session.
Cae eye
fist fouisimet Cae
CT ome k DURCH
ue CReLe
(2ixe0 [2,9 [Commected [felnet Printer: OF Loguing: OFF [OM Ready Zz
T T T
d ) aFile Command Resources
The following commands will provide additional
information on using file commands, and will
include information about how to alter the
command.
* help dir
*help dir examples
* help copy
*help delete
*help delete examples
*help rename
* More information on using the file system can
be found in the Directories tutorial. available offVMS File System Commands
* This tutorial demonstrated how to use VMS
commands to manage files.
* The other mainframe tutorials demonstrate
other common mainframe commands.Training Services
Thank you for
viewing our tutorial