Processing DUMMYFCB -.=====""""'1) 1 Initialize the output FSCB. ....- DUMMY
DUMMY
A1 INPFSCB I FILENAME I Input file t../Data Notes Module 1 The filetype in the dummy FSCB is DMSGRN initialized to TEXT. Each linkage
editor TEXT file has a filename con-
sisting of the first 6 characters of the
filename (or the entire filename if it
2 Save the linkage editor options.
3 Scan the input file for the SYSLIN control card.
4 Write the output linkage editor
file.
5 Close the output file.
6 Build the statements necessary
to do the link editing. Label Ref Notes Lr I I I tL IEWL Close errors are ignored.
6 The LKDFIRST bit in the PROCSW1 byte is tested. If it is off, it is set on
and the filename of the input file is
filenaLn
text
a1 B Output file ERASE NCPTEMP LOADLIB A FILEDEF SYSLIB DISK .. . FILEDEF SYSLMOD DISK .. .
LKED xxxxxxxx (PRINT NOTERM FILEDEF SYSLIB DISK FILEDEF xxxxxxxx DISK OBJ3705 TEXTLIB A 1 ... FILEDEF xxxxxxxx DISK NCPTEMP LOAD LIB A1 ...
F!LEDEF SYSLMOD DISK xxxxxxxx LOADLIB A1 ...
LKED xxxxxxxx ( ... Module Label FSCBCLOS DMSGRN LKDSTAC!< Ref
is 6 characters or less) concatenated moved into the FILEDEF and LKED With L and a number. I The IIEXEC card is edited for the DMSGRN keyword PARM=. The linkage editor
options are moved to the option field
of the LKED command. EXEC con-
tinuation cards are ignored.
3 The input file is scanned for the DMSGRN IEWLJCL2 SYSLI N card. All cards scanned pre-
ceding the SYSLIN card must have *
or II in the first positions. Otherwise, the error message DMSGRN078E INVALID CARD IN INPUT FILE 'xxxxxxxxxxxxxxx'
is issued.
4 The FSCBRD routine reads the input
file and the FSCBWT routine writes
it to the output file.
The ED!TIN routine scans for the key­ word ENTRY. If the keyword
ENTRY is found, the IEWLENT routine moves the entry name to the SAVENCP statement. DMSGRN IEWLSN10 IWRTSIN lEWlENT 5 The output file is closed by branching DMSGRN IEWLSEOF and linking to the FSCBCLOS routine.
commands. Aiso, the command
count and address from STAKLKD1
are loaded into registers 1 and 2. If the LKDFIRST bit is on, the
command count and address from
ST ACKLKD2 are loaded into
registers 1 and 2.
Diagram 9-5. DMSGRN--Generating the Link Edit Files I ILKDSTJ I Chapter 9. The 3704/3705 Service Programs 175
Input Processing Output
PLIST I GRl ....---.......,) Validate command line. ) Notes Moduli 1 A filename must be specified. If it is DMSARN not, the message
DMSARNOO1E NO FILENAME SPEC- IFIED is issued and processing terminates.
The COMPSWT bit is set on in OSSFLAGS to indicate the 3705 assembler is running. The option list to be passed to the 3705 assembler
is built. If Batch is running, the message
ASSEMBLING filename Al is displayed and steps 2 and 3 are
skipped.
2 The STATE macro is issued to check DMSARN
that the input file exists and has
fixed 80-character records. If the
record format is wrong, the message
DMSARNOO7E FILE filename IS NOT FIXED, 80 CHAR. RECORDS is issued and processing terminates.
3 If the input file resides on a read/ DMSARN
write disk, that disk is used to contain
the text and listing files that are
generated. If the input disk is an extension of a
read/write disk, the parent disk is
used. Otherwise, the A disk is used.
2 Oleck that the source file exists
and has the proper format.
3 Locate read/write disk space.
4 Define the necessary files. 5 Pass control to the 3705 Assembler
program.
6 Return to CMS. Label Ref Notes DMSARN
4 All the old text, listing, and utility files for the current file are erased.
Free storage is initialized and enough
storage to contain the longest assemble
path is obtained via a GETMAIN call. SQUEEZE FI LEDEFs are issued for SYSUT1, SYSUT2, SYSUT3, SYSIN, TEXT, SYSPUNCH (if the DECK option was
specified), SYSPRINT (if the NOPRINT option was not specified), LISTING, and CMSLlB. SUIT15 5 Control is passed to IFKASM. 6 If the return code is not zero, one of
the following messages is issued SUIT25 DMSARN004W WARNING MESSAGES ISSUED DMSARNOOSW ERROR MESSAGES ISSUED DMSARNOl2W SEVERE ERROR MESSAGES ISSUED DMSARNOl6W TERMINAL ERROR MESSAGES ISSUED SUIT17 The output files are closed and the
utility files SYSUT1, SYSUT2, and SYSUT3 are erased. All FCBs are
cleared, OSSFLAGS is reset, and control returns to CMS. Diagram 9-6. DMSARN--ASM3705 Command Processor
176 IBM VM/370 Service Routines Program Logic OPSTART I options
FCBs Module DMSARN
DMSARN
DMSARN Label Ref CONTINUE NOERASE LlST2
RETURN SUIT19
Previous Page Next Page