Invoking the assembler on TSO

On TSO, you can use TSO commands, command lists (CLISTs), REXX™ EXECs, or ISPF to assemble your program. Figure 34 shows how to allocate the data sets and assemble the source program using the ALLOCATE and CALL commands. The commands are shown in bold text.

Figure 34. Assembling on TSO
READY
ALLOCATE FILE(SYSPRINT) DATASET(*) REUSE
READY
ALLOCATE FILE(SYSTERM) DATASET(*) REUSE
READY
ALLOCATE FILE(SYSLIN) DATASET(PROG.OBJ) NEW TRACKS SPACE(3,3)
    BLKSIZE(80) LRECL(80) RECFM(F B) CATALOG REUSE
READY
ALLOCATE FILE(SYSADATA) DATASET(PROG.ADATA) NEW CYLINDERS
    SPACE(1 1) BLKSIZE(32760) LRECL(32756) RECFM(V B)   
    REUSE CATALOG
READY
ALLOCATE FILE(SYSIN) DATASET(PROG.ASSEMBLE) SHR REUSE
READY
ALLOCATE FILE(ASMAOPT) DATASET(PROG.OPTIONS) SHR REUSE
READY
CALL *(ASMA90) 'ADATA,LIST(133),OBJECT,TERM'

·
·
·
Assembler listing and messages
·
·
·
READY FREE FILE(SYSADATA,SYSPRINT,SYSTERM,SYSLIN,SYSIN) READY

You can enter ALLOCATE commands in any order; however, you must enter all of them before you start the assembly. Table 23 shows the data sets you must allocate when you specify particular assembler options.

Table 23. Assembler options and data sets required
Option Specified Data Sets Required
Any SYSUT1 and SYSIN
LIST SYSPRINT
TERM SYSTERM
OBJECT SYSLIN
DECK SYSPUNCH
ADATA SYSADATA

Exit Option: If you specify the EXIT option, the user exit program module must be in a partitioned data set that is in the standard search sequence, including the Link Pack Area (LPA).


[ Top of Page | Previous Page | Next Page | Contents | Index ]