Tc  perform  the  assembly   in  the  CMS   virtual  machine,  follow  these  
steps:1.   The  CMS   virtual  lIachine   (OSCMS)   must  have  access  to  the  supervisor  
macro instructions in These  macro  instructions  
reside on volume DLIBA2, owned by theOSVSSYS   virtual  machine.  To  
have access to these macro instructions, enter the following
commands from theOSCMS   terminal:  
cp link osvssys 351 351 rr
acc 351 b
filedef cmslib disk osgenlib maclib b dsns1s1   agenlib  
global maclib osgenlib
Thesecom.ands   can  be  placed  into  a  CMS   EXEC   and  given  control  by  
use of a singlecommand.   For  details  about  creating  EXEC   procedures,  refer  to  the   2.  The  eMS   assembler   requires  two  special  input  files:  •   One   eMS   file  to  contain  the  job  control  
the syste. generation macro instructions.
fi1ena.e, such asSTG1IN   OJCL.   statements  that  precede  
File it with a unique•   0   ne  eMS   file  
instructions, an
unique filename,ASSEMBLE.   (The  
statement file.)
to contain: the system generation macroEND   statement,  and  a  1*   card.  File  it  with  a  
such asSTG1IN,   and  the  required  filetype  of  
file type identifies it as an assembler sourceWith   both  requirements  in  step  2  met,  assemble  the  stage  I  input  in  
theeMS   virtual  machine   by  issuing  the  CMS   co.mand:  
assemble stg1in
The assembly output is thesetwo   CMS   files:  STG   lIN   TEXT   STG1IN   LISTING   (punch  output)  
(printer output)
The punched output is the job stream for stage II input. The printed
output documents the expansion of each specified macro instruction
including the punch statements that comprise the input to stage II.When   assembling  under  eMS,   eMS   displays  assembly  errors  on  the  
terminal. A user does not have to wait for the listing to be printed.
Before retrying the assembly, use theeMS   editor  to  correct  the  source  
file.When   the  assembly  is  finally  error-free,  the  two   output  files  
which reflect the final assembly can then be printed, punched, or used
to create jcb streams.
122IBM   VM/370   operating  Systems   in  a  Virtual   Machine  
steps:
macro instructions in
reside on volume DLIBA2, owned by the
have access to these macro instructions, enter the following
commands from the
cp link osvssys 351 351 rr
acc 351 b
filedef cmslib disk osgenlib maclib b dsn
global maclib osgenlib
These
use of a single
the syste. generation macro instructions.
fi1ena.e, such as
File it with a unique
instructions, an
unique filename,
statement file.)
to contain: the system generation macro
such as
file type identifies it as an assembler source
the
assemble stg1in
The assembly output is these
(printer output)
The punched output is the job stream for stage II input. The printed
output documents the expansion of each specified macro instruction
including the punch statements that comprise the input to stage II.
terminal. A user does not have to wait for the listing to be printed.
Before retrying the assembly, use the
file.
which reflect the final assembly can then be printed, punched, or used
to create jcb streams.
122
            
            








































































































































































