Chapter Contents |
Previous |
Next |
The AR2UPDTE and UPDTE2AR Utilities |
Using AR2UPDTE under CMS |
Under CMS, the AR2UPDTE utility is invoked directly with the following command:
ar2updte [options] infile outfile
options specifies one or more options, each of which is a single
character preceded by a hyphen (-). Some options (for example,
-t
) must be followed by
an option argument. The argument may be separated from the option by white
space, but this is not a requirement. Note that the case of option characters
is not significant, but that case is significant for most option arguments.
The following options are recognized:
-t
c
:
s-t
option can be specified. The option argument c
:
s indicates that if the string
'
c
'
(which can be longer
than a single character) occurs in an archive member name, it is to be replaced
by the string
'
s
'
in the output PDS member name.
Unless
-x
is specified, default member translation rules
are used. See the section Default Member Translation Rules for details.
-x
-x
argument is optional. The
-x
option can be used to preserve
the original input archive's member names, even if they do not conform to
the IEBUPDTE rules for acceptable PDS member names. The resulting output
may not be usable as input to IEBUPDTE, but it can be used as input to UPDTE2AR
to build a copy of the input archive.
The following examples show typical AR2UPDTE command lines under CMS:
ar2updte testlib.a test.iebupdte
test.iebupdte
from the archive
testlib.a
.
ar2updte -x testlib.a test2.iebupdte
test2.iebupdte
from the archive
testlib.a
without performing any translations
on the names of object members in the archive.
ar2updte -t ?:QU -t x:$ testlib.a test3.iebupdte
test3.iebupdte
from the archive
testlib.a
. Convert all question marks
to the letters QU, and convert all x's to the dollar sign.
Using AR2UPDTE in TSO |
This section describes calling AR2UPDTE in TSO using the TSO CALL command. Use the following syntax:
CALL 'library.name(AR2UPDTE)' '[options] infile outfile' ASIS
See the section Using AR2UPDTE under CMS for a description of the options. Note that infile and outfile will be interpreted as DDnames unless a SAS/C style prefix is used.
The following example shows a typical use of AR2UPDTE in TSO:
CALL 'SASC.LOAD(AR2UPDTE)' 'tso:testlib.a tso:testpds.data' ASIS
Using AR2UPDTE under OS/390 Batch |
The AR2UPDTE cataloged procedure is used to execute AR2UPDTE under OS/390 batch. You must provide a SYSARLIB DD statement defining the input AR370 archive and a SYSPUNCH DD statement defining the output file. The output file must be defined to have fixed-record format with 80-byte records. If you need to pass special AR2UPDTE options, specify the OPTS keyword in the EXEC statement, as shown below. See the section Using AR2UPDTE under CMS for information on the AR2UPDTE options and their meanings.
Sample JCL for Running the AR2UPDTE Cataloged Procedure shows typical JCL for using the AR2UPDTE cataloged procedure, followed by calling IEBUPDTE to generate a PDS.
Sample JCL for Running the AR2UPDTE Cataloged Procedure
//SAMPAR2U JOB job card information //*------------------------------------------ -------------- //* INVOKE AR2UPDTE FOLLOWED BY IEBUPDTE //* //* REPLACE GENERIC DATA SET NAMES AS APPROPRIATE //*------------------------------------------ -------------- //STEP1 EXEC AR2UPDTE,OPTS='options' //U2A.SYSARLIB DD DSN=input.ar370.archive,DISP=SHR //U2A.SYSPUNCH DD DSN=updte.format.output,DISP=(OLD,PASS) //STEP2 EXEC PGM=IEBUPDTE,COND=(0,NE),PARM='NEW' //SYSPRINT DD SYSOUT=* //SYSUT2 DD DSN=output.pds,DISP=(NEW,CATLG),UNIT=SYSDA, // SPACE=(your-space-values), // DCB=(RECFM=FB,LRECL=80,BLKSIZE=your-blksize) //SYSIN DD DSN=updte.format.output,DISP=OLD //
In this example, options
is any required AR2UPDTE options (for example,
'-t ?:QU'
).
The AR2UPDTE procedure contains the JCL shown in Expanded JCL for AR2UPDTE.
Expanded JCL for AR2UPDTE
//AR2UPDTE PROC OPTS='' //**************************************************************** //* NAME: AR2UPDTE (AR2UPDTE) *** //* PRODUCT: SAS/C *** //* PROCEDURE: CONVERT AR370 ARCHIVE TO IEBUPDTE INPUT *** //* DOCUMENTATION: SAS/C COMPILER AND LIBRARY USER'S GUIDE *** //* FROM: SAS INSTITUTE INC., SAS CAMPUS DRIVE, CARY, NC *** //**************************************************************** //* //U2A EXEC PGM=AR2UPDTE,PARM='&OPTS DDN:SYSARLIB DDN:SYSPUNCH' //STEPLIB DD DSN=SASC.LOAD, // DISP=SHR COMPILER LIBRARY // DD DSN=SASC.LINKLIB, // DISP=SHR RUNTIME LIBRARY //SYSTERM DD SYSOUT=* //SYSPRINT DD SYSOUT=*
Default Member Translation Rules |
Unless the
-x
option is specified, some translations are automatically
performed by the AR2UPDTE utility:
Note:
Translations specified by the
user occur prior to the default translations. Interactions between the user
specified translations and the default translations may cause unexpected behavior.
For example, if the
-t
option is invoked with
.:per
, then the default
translation which converts a leading period (.) to the at sign (@) will not
occur. The leading period (.) will be converted to "per". Also, if the
-t
option is invoked with
b:_
, then the b's will be converted to underscores
(_) first and then to pound signs (#), by default.
AR2UPDTE Diagnostics |
LSCAU1 Error: opening input file, "[
filename
]".
LSCAU2 Error: opening output file, "[
filename
]".
LSCAU3 Error: reading file, "[
filename
]".
LSCAU4 Error: writing file, "[
filename
]".
LSCAU5 Error: creating CMS-style file identifier from filename,
"[
filename
] ".
LSCAU6 Error: Wrong number of command line arguments.
Correct usage: ar2updte [-x | -t c1:s1 [-t c2:s2...]]
filein fileout
The command line requires a minimum of two arguments, an input archive and an output filename.
LSCAU7 Error: loading list of translate characters.
Correct usage: ar2updte [-x | -t c1:s1 [-t c2:s2...]]
filein fileout
LSCAU9 Error: Option -t needs to be followed by an argument.
Correct usage: ar2updte [-x | -t c1:s1 [-t c2:s2...]]
filein fileout
LSCAU10 Error: Unrecognized option -"
option
".
Correct usage: ar2updte [-x | -t c1:s1 [-t c2:s2...]]
filein fileout
The only valid options in AR2UPDTE are:
-x
and
-t
c
:
s.
LSCAU11 Error: The argument "
argument
" that follows
the -t option must be in the form c:s where c is the string to be
translated and s is the resulting string.
Correct usage: ar2updte [-x | -t c1:s1 [-t c2:s2...]]
filein fileout
The
-t
option must be followed immediately with an argument
in the form c
:
s.
All strings
`
c
'
in the member names of the archive
will then be translated to the string
`
s
'
in the resulting IEBUPDTE input file.
LSCAU12 Error: Unable to identify AR370 archive, "[
filename
]".
LSCAU13 Error: reading AR370 archive members in "[
filename
]".
LSCAU14 Error: "[
filename
]" is not
an AR370 archive.
LSCAU15 Error: File is not recognized as an archive. Cannot
process file "[
filename
]".
LSCAU16 Error: archive format unrecognized. Cannot process
file "[
filename
] ".
LSCAU17 Error: archive format unrecognized. Cannot process
file "[
filename
] ".
LSCAU18 Error: writing to output file, "[
filename
]".
LSCAU28 Warning: The number of aliases for the member "[
member name
]" excee ds 16.
LSCAU29 Warning: Duplicate member name "[
member name
]" has been generated i n output.
LSCAU30 Warning: Symbol "[
symbol name
]" was previously defined and has been omitted from output.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.