March 30, 1979 204.2 IBM VM/370 eMS User's Guide
March 30, 1979
If you are creating a tape under OS/VS access method services to he read by CMS AMSERY, you must be sure to create the tape using standard
labels so that CMS can read it properly. CMS will not be able to read a
tape created with LABEL=(,NL) on the DD card.
For CMS to read this tape for any other purpose (for example, to use
the MOYEFILE command to copy it), you must remember to forward space the
file past the label file before beginning to read it.
Using AMSERV under eMS This section provides examples of AMSERV functions executed under CMS. The examples are applicable to both the CMS (OS) and CMS/DOS environments. You should be familiar with the material presented in
either "Defining DOS Input and Output Files" or "Defining as Input and Output Files," depending on whether you are a DOS or an OS user,
respectively. For the examples shown below, command lines and options
that are required only for CMS/DOS users are shaded. as users should
ignore these shaded entries.
A CMS format variable file cannot be used directly as input to AMSERV functions as a variable (V) or variable blocked (VB) file because the
standard variable CMS record does not contain the BL and RL headers
needed by the variable record Modules. If these headers are net included in the record, errors will result.
All files placed on the CMS disk by AMSERV will show a RECFM of V, even if the true format is fixed (F), fixed blocked (FB), undefined (U), variable or variable blocked. The programmer must know the true format
of the file he is trying to use with the AMSERV command and access it
properly or errors will result.
A CMS standard variable-format file can be accessed as RECFM=U to use
the file as follows: AMSERV AMREPUV The file AMREPUS AMSERV contains the following 2 cards: REPRO INFILE (INPUT ENV(RECFM(U},BLKSZ(800),PDEV(3330») OUTFILE (OUTPUT ENV(RECFM(V),BLKSZ(800),RECSZ(84),PDEV(3330») The input file can be any CMS file with LRECL 800 or less. The
output file will be a true variable file that can be used with AMSERV. USING THE DEFINE AND DELETE FUNCTIONS When you use the DEFINE and DELETE control statements of AMSERV, you do
not need to specify the DSN parameter on the DLBL command: dlbl ijsysct c (perm extent II III il If the above commands are executed prior to an AMSERY command to define
a master catalog, the DEFINE will be successful as long as you have
assigned a data set name using the NAME parameter in the AMSERV file.
The same is true when you define clusters, or when you use the DELETE
function to delete a cluster, space, or catalog. Section 10. Using Access Method Services and VSAM 205
Previous Page Next Page