CMS (OMSI NT) _________ -. We e •• > Output PLIST -'-------> 1 Initialize the GEN3705 processing. IMPFSCB .... IG_R_l __ ENTRY ADDR
FILENAME R
OPTIONS
Lr -----I Input file I FILETYPE rF Ir-O-P-TL-IS-T-----,'. II:> I 2 Scan the input file for the //EXEC card.
A. Edit Assembler input (See Diagram 9-4 for details.)
B. Edit Linkage Editor input (See Diagram 9·5 for details.)
3 Write the EXEC file.
4 Add the SAVENCP statement to EXEC file, if requested.
5 Close the EXEC file.
6 Execute EXEC file, if requested.
Notes Module Label Ref Notes
1 The input file name, type, and option· ally the mode are put into INPFSCB. The filename or the first 6 characters
of the name, whichever is the least,
is saved for naming the assembler and
linkage editor output files.
The input options are scanned and the
appropriate options are set on. Invalid options cause the message
DMSGRNOO3E INVALID OPTION xxxxxxxx
to be issued.
The FSSTATE macro is issued to see
if the file exists. Either of the follow­ ing messages is issued in case of an
error DMSGRN,048E INVALID MODE xxx DMSGRNOO2E FILE xxxxxxxx NOT FOUND DMSGRN START OPTEND 2 The FSCBRD routine is used to read DMSGRN PRIMEDIT the input file. The EDITIN routine
scans for a //EXEC card containing PGM=IFKASM or PGM=IEWL. Control cards are scanned until a valid EXEC card is found. If *, II, or /* does not
appear as the fi rst characters of the
input record or if an invalid //EXEC card is read, the message DMSGRN078E INVALID CARD IN INPUT FILE 'xxxxxxxxxxxxxxx'
is displayed.
The IFKASM routine processes the
assembler input and the I EWL routine
processes the linkage editor input.
After the input is processed, DMSGRN continues by scanning the input file for
another / /EXEC card.
3 The EXEC statements that were gener-
ated as a result of the assembler and
linkage editor input are written to an EXEC file.
4 The CLOST ACK routine is called to
add SAVECP filename (ENTRY entryname
to the end of the EXEC file, if SAVE was specified on the GEN3705 command.
5 The EXEC macro file is closed by
branching and linking to the PROCEND routine.
6 If RUN was specified, the command EXEC ncpname
is stacked in the reader.
Control is returned to CMS. Diagram 9-3. DMSGRN--Overview of the GEN3705 Co.mand Processor EXEC file Module DMSGRN DMSGRN DMSGRN DMSGRN OPTLIST i RUN NORUN SAVE NOSAVE Label Ref FINDASM FINDIEWL ISTACK30 I I PROCEND2 I STACK30 PROCENDl PROCENDl RETURN1 I I Chapter 9. The 3104/3705 Service Programs 173
Input Processing Output
DUMMYFCB
DUMMY :> 1 Initialize the output FSCB. OUTFSCB DUMMY
A1 rr==> 2 Scan the input file for the I/SYSPUNCH card. INPFSCB r-- I FILNAM, I -- Input file I Data I Notes Module 1 The filetype in the dummy FSCB is DMSGRN initialized to ASM3705. Each ASM3705 file has a filename consisting
of the first 6 characters of the filename
(or the entire filename if it is 6
characters or less) concatenated with
a number. The FSCBWT routine uses
the dummy FSCB to initialize the OUTFSCB. 2 The input file is scanned for a DMSGRN SYSPUNCH or SYSPUNCH continuo
ation card. If found, it is scanned for
the DSN= or DSNAM E= keyword. The DSNEDIT routine then saves the memo
bern a me of the data set in the current SYSPUNCH membername savearea.
3 The input file is scanned for the DMSGRN SYSIN card. All cards scanned pre· ceding the SYSIN card must have *
or II in the first positions of the card.
Otherwise DMSGRN078E INVALID CARD IN INPUT FILE 'xxxxxxxxxxxxxxx'
is issued.
4 The FSCBRD routine reads all the DMSGRN input and the FSCBWT routine writes
it to the output file.
5 The output file is closed by branching DMSGRN and linking to the FSCBCLOS routine.
Close errors are ignored.
3 Scan the input file for the I/SYSIN card.
4 Write the input file to the output
file.
5 Close the output file.
6 Build the statements necessary to
do the assembling. Label Ref Notes IFKASM 6 The ASMFI RST bit in the PROCSW1 byte is tested. If the bit is on, the
GEN parameter in the TXTLIB com-
mand is changed to ADD. Otherwise, the bit is turned on.
The name of the output assembler file ASMMEM 8 ASM3705 output file ASM3705 xxxxxxxx (PRINT) EDIT xxxxxxxx TEXT A1
[GEN]
TXTLIB [ADD] xxxxxxxx
yyyyyyyy ERASE xxxxxxxx TEXT Module Label DMSGRN ASMSTAK ASMSTAK2 is moved into the ASM3705 and EDIT commands. The FSCB base address
is changed and the name of the input IFKASM10 file is put into the TXTLIB command.
The SYSPUNCH membername is then ASMSTAK4 moved to the TXTLIB command. IFKASM34 The number of commands and the ASMSTA!<6 address of the first command in the
stack are loaded from ST ACKASM IFKASM40 into registers 1 and 2 respectively. IFKASMAO IFKASMKO Diagram 9-4. DMSGRN--Generating the 3705 Assembler Files
174 IBM VM/370 Service Routines Progra. Logic
Ref
Previous Page Next Page