Chapter Contents |
Previous |
Next |
The AR370 Archive Utility |
Under CMS, the AR370 archive utility is invoked directly with the following command:
AR370 cmds [posname] arcname [fname...]
The cmds argument must
be specified and consists of an optional hyphen (
-
), followed by one of
the command characters
d
,
m
,
r
,
x
,
or
t
. (t may be specified in combination with any other command.) Optionally,
you can concatenate the command character with one or more of the command
modifier characters
a
,
b
,
e
,
f
,
j
,
q
, or
v
. The command and command modifier characters are
described later in this section.
The arcname argument specifies
the archive fileid and must be present. The default filetype is
A
. If filetype is specified,
it must be joined to the filename with a period (.). The default filemode
is *. If a filemode is specified it must also be joined to the filetype with
a period (.).
AR370 RV ZOOM RUN.TEXT WALK.TEXT
If either RUN.TEXT or WALK.TEXT does not exist in the
ZOOM archive, they are added to the archive by the
r
command character.
filename.filetype.filemode=membername
AR370 R MYLIB THIS.TEXT.A=THAT.OBJECT
This command stores the file THIS.TEXT.A in the archive MYLIB with member name THAT.OBJECT.
Command Characters |
The following command characters are recognized:
d
|
deletes the specified members from the archive. |
m
|
moves the specified members. By
default, the members are moved to the end of the archive. If an optional
positioning character (
a
or
b
) is used, the posname
argument must be present to specify that the named members are to be placed
after (
a
) or before (
b
) posname. Note that
the members are moved in the order of their appearance in the archive, not
in the order specified on the command line. This means that when a number
of members are moved, they remain in the same order relative to each other
as before the move. |
r
|
replaces the specified files in the
archive, creating new members for any that are not already present. If an
optional positioning character (
a
or
b
) is used, the posname
argument must be present to specify that the new members are to be placed
after (
a
) or before (
b
) posname. In the
absence of a positioning character, new members are appended at the end.
When the
r
command character is used, the AR370 archive utility creates an archive
file if it does not already exist. If no files are specified by fname arguments, the utility creates an empty
archive. |
t
|
types a description of the contents
of the archive. If no member names are specified, all members in the archive
are described by name. If any member names are specified, information appears
about those members only. Additional information is produced when either
the (
v
) or (
e
) command modifiers is specified. |
x
|
extracts the named archive members. If no names are specified, all members of the archive are extracted. The member name is used as the name of each extract output file. The extract command does not alter or delete entries from the library. |
Optional Modifier Characters |
The following optional modifier characters are recognized:
a
|
After: Positions the members to be
moved or replaced after the member specified by the posname argument. If you specify
a
, you must specify
posname. |
b
|
Before: Positions the members to
be moved or replaced before the member specified by the posname argument. If you specify
b
, you must specify
posname. |
e
|
Enumerate: Lists the defined symbols
for the members specified for the type command. This modifier is meaningful
only when used with the type (
t
) command. When used with the verbose (
v
) command modifier, all
defined and referenced symbols in the specified members are displayed. |
f
|
Files: On OS/390, specifies the use
of a DDname prefix by the AR370 utility. Refer to the
files
option in Compiler Options for more
information. |
j
|
Japan or uppercase: Produces all
terminal output in uppercase (
japan
). |
q
|
Quick: Processes members of existing
archives more quickly. This option keeps AR370 from reprocessing every member
in the archive. It greatly reduces the amount of I/O needed to add, replace,
delete, and move members in an archive, since no work file is used. You should
use this option with care, however, because an existing library containing
data could be destroyed if space in the data set runs out. Prior to using
AR370 with the
q
option, it is recommended that you back up the archive so that you
will not lose your data in the event that the original data set is destroyed.
The
|
v
|
Verbose: When used with the type
(
t
) command, the
v
command modifier produces a long listing of information
for each specified member in the form of name, date, size, and number of symbols.
If no members are specified, a listing is produced for all members in the
archive.
When used with the
|
y |
Yes: List the mangled name along
with the demangled name. The y modifier is
meaningful only when used with the e (enumerate ) optional modifier. |
Only the combinations of commands and command modifiers shown in the following table are meaningful.
Command | Accepted Modifiers and Commands |
---|---|
d
|
e, f, j,
q, t, v
|
m
|
e, f, j,
q, t, v
and
a | b
|
r
|
e, f, j,
q, t, v
and
a | b
|
t
|
d, e, f,
j, m, r, v, x
|
x
|
e, f, j,
t, v
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.