Foreground Assembler

To use the Foreground Assembler, enter P (ISPF/Program Development Facility) at the Main Menu.  Next, enter option 4 (Foreground) then option 1 (High Level Asm/Asm H).  You will see a screen similar to the one below:
 
 

                 Foreground High Level Assembler / Assembler H 
  
 ISPF Library: 
    Project . . . CA1F99 
    Group . . . . SU     . . . _____. . . _____ . . ._____ 
    Type  . . . . SOURCE 
    Member  . . . ______ (Blank or pattern for member selection list) 
  
 Other Partitioned or Sequential Data Set: 
    Data Set Name . . .____________________________________ 
  
 List ID  . . . . . . .________   Password . . . . . . . 
 Assembler Level  . . . HLASM  (HASM or HLASM) 
  
 Assembler Options:(Options OBJECT and LIST generated automatically) 
   Other . . . ____________________________________________ 
  
 Additional input Libraries: 
        ===>_______________________________________________ 
        ===>_______________________________________________ 
        ===>_______________________________________________ 
 
 

 The project field will have your userid.  The group field is SU and the type is SOURCE.  Press enter and you will see a screen similar to the one below that lists your source programs.  Tab in front of the program you wish to assemble and press enter.
 

 

   Options  Utilities  Help 
 ------------------------------------------------------------------------------ 
 FOREGROUND:  CA1F99.SU.SOURCE                              Row 00001 of 00002 
    Name                VV MM  Created     Changed     Size  Init   Mod   ID 
 . ASSIGN1              01.00 98/09/03 98/09/03 10:32    13    13     0 CA1F24 
 . COBTST01 
   **End**
 

A message will notify you that the high level assembler has started.  The message will be followed by  three asterisks.  Press enter and you will see a screen like the one below:
 
 

 BROWSE    CA1F99.ASSIGN1.LIST                Line 00000000 Col 001 080 
**************************** Top of Data ****************************** 
                   High Level Assembler Option Summary 
  
  Overriding Parameters-  OBJECT,LIST, 
  No Process Statements 
  
   Options for this Assembly 
   NOADATA 
   ALIGN 
   ASA 
   BATCH 
   NOCOMPAT 
   NODBCS 
   NODECK 
   DXREF 
   ESD 
   NOEXIT 
   FLAG(0,ALIGN,CONT,RECORD,NOSUBSTR) 
   NOFOLD 
   LANGUAGE(EN) 
   NOLIBMAC 
 Command ===> _____________________________             Scroll ===> PAGE
 

Use the F8 key to scroll down the pages.  Check that no statements were flagged in the assembly as highlighted below.  If there are errors in your program, edit your program and follow the steps above to reassemble it.  When no statements are flagged,  press F3 to go to the Foreground Print Options screen.
 
 

 BROWSE    CA1F99.ASSIGN1.LIST                 Line 00000066 Col 001 080 
 C        00000004 00000018 00000001     F       12  7M 
                        Unreferenced Symbols Defined in CSECTs 
  Defn  Symbol 
     1  P1 
         Using Map 
  
  Stmt  -----Location----- Action ----------Using--------- Reg Max    Last 
        Count    Id     Type      Value  Id  Disp   Stmt 
     3  00000002  00000001 USING  ORDINARY   00000002 00000001 12 016   7 
                     
                        Diagnostic Cross Reference and Assembler Summa 
  
     No Statements Flagged in this Assembly 
  HIGH LEVEL ASSEMBLER, 5696-234, RELEASE 2.0, PTF UQ06874 
  SYSTEM: MVS/ESA SP 6.0.4   JOBNAME: CA1F99      STEPNAME: IKJSTU     PRO 
  Datasets Allocated for this Assembly 
  Con DDname   Dataset Name                                 Volume  Member 
  P1 SYSIN    CA1F99.SU.SOURCE                             SMSS04  ASSIGN1 
  L1 SYSLIB   SYS1.MACLIB                                  MVS0XS 
  L2          CA1F99.SU.SOURCE                             SMSS04 
  SYSLIN      CA1F99.SU.OBJ                                SMSS01  ASSIGN1 
  SYSPRINT    CA1F99.ASSIGN1.LIST                          SMSS07 
  
 Command ===>____________________________          Scroll ===> PAGE
 

If you would like to print a listing of your program, enter PD on the command line.  The data set name will automatically be filled.  Change the print mode to BATCH.  Enter P,ST307,OUT1 for the SYSOUT class.  You can change ST307 to reflect which room you prefer your output to be printed.

Tab to the job statement information.  On the first line, enter the following command:
//userid# JOB (STUMVS), CLASS=A.  The # following your userid can be any letter.

Tab to the next line and enter the command:
/*OUTPUT OUT1 DEST=STULAB,FORMS=SLW8 and press enter.  Your listing will be routed to the printer you specified.
 
 

                          Foreground Print Options 
   Option  ===> PD_____________________________________________________ 
  
   PK  Print data set and keep     K  Keep data set (without printing) 
   PD  Print data set and delete   D  Delete data set (without printing) 
  
   If END command is entered, data set is kept without printing. 
  
   Data set name . : CA1F24.ASSIGN1.LIST 
  
   Print mode  . . . BATCH       (BATCH or LOCAL) 
  
   SYSOUT class  . . P,MG104,OUT1 
   Printer id or 
   writer-name . . .                    (For local printer) 
  
   Job statement information:           (Required for system printer) 
     ===> //CA1F24J JOB (STUMVS),CLASS=A 
     ===> /*OUTPUT OUT1 DEST=STULAB,FORMS=SLW8 
     ===> ____________________________________ 
   JOB CA1F24J(JOB04624) SUBMITTED 
   CA1F24.ASSIGN1.LIST will be printed and deleted by job - CA1F24J 
   *** 
 
 

Press F3 until you arrive at the Specify Disposition of Log Data Set screen and press enter.

At the  ready prompt type:
LINK  fuserid.SU.OBJ(program name)'     LOAD(fuserid.SU.LOADLIB(program name)') and press enter.  At the next ready prompt type:  TEST  fuserid.SU.LOADLIB(program name)' and press enter.   At the TEST prompt, type GO and press enter.  To see what value is in each register type: LIST 0R:15R and press enter.  At the TEST prompt, enter GO.  The following screen shows each of these steps.

 

  CA1F99.SPFLOG1.LIST has been deleted. 
   READY 
   link 'ca1f99.su.obj(assign1)'  load('ca1f99.su.loadlib(assign1)') 
  
   IEW2278I B352 INVOCATION PARAMETERS - TERM 
   IEW2650I 5102 MODULE ENTRY NOT PROVIDED.  ENTRY DEFAULTS TO SECTION P1. 
   IEW2008I 0F03 PROCESSING COMPLETED.  RETURN CODE =  0. 
   READY 
   test 'ca1f99.su.loadlib(assign1)' 
  
   TEST 
   go 
   PROGRAM UNDER TEST HAS TERMINATED NORMALLY+ 
   TEST 
   list 0r:15r 
  
          0R  0001EC4C   1R  00000007   2R  FFFFFFFF   3R  FFFFFFFF 
          4R  FFFFFFFF   5R  FFFFFFFF   6R  FFFFFFFF   7R  FFFFFFFF 
          8R  FFFFFFFF   9R  FFFFFFFF  10R  FFFFFFFF  11R  FFFFFFFF 
          12R  50020FE2  13R  0001FFB0  14R  007B5D0C  15R  00020FE0 
   TEST 
 
 

At the ready prompt, enter ISPF to return to MVS.  Otherwise, type LOGOFF at the ready prompt to logout.


General Info | Logon to StuMVS | Using CICS | Using TSO | Standards | Glossary of Terms
StuMVS Home | Instructor's Form | UIMS Home | WIU Home Page

Western Illinois University
University Information Management Systems
Copyright © 2001