II
Count number of bad 2Kbloc~s
of main storage.Assign save area for bad 2K block numbers.
Move bad 2K blocks to save area.
II
Move dump SVC address into transient/transfer control table for each table entry.Read in block (one track) of library directory sectors.
Look for name table entry in library directory . . If name table entry found:
• Place SSN in transient table if necessary.
• Place SS in SCA (message member) if necessary.
• Build loader parameter list if necessary.
If name table entry not found:
• Determine whether it is required by SSP.
• If required, call dump main storage transient task (9 control storage function) to abend system (MIC 249).
II
Resolve disk addresses by executing cross reference resolver.1,1
Determine whether any bad 2K storage blocks exist (SCA2KBAD).Find task control block (TCB) address translate registers (ATRs).
Flag bad ATRs.
Set good ATR numbers in TCB.
II
Allocate temporary assign/free space for duration of main storage IPL.Load and pass control to IPL phase 2 (#MSTWA).
Diagram 1.2 (Part 2 of 2). Perform Main Storage IPL Phase 1 Processing 1·6
Licensed Material-Property of IBM
MODULE/
ROUTINE
#MSNIP
Disk lOS
#MSNIP
#MAXRF
#MSNIP
(
\,
From: Main Storage IPL Phase 1
D
Initialize task work area indexI)
Initialize terminal unit blocksII
Initialize task work areaII
Build device allocate tableII
Initialize command reject file data areas User AreaD
Scan load table built during directory scan by #MSNIP.Load resident routines:
•
Calculate next load address.•
If request indicator byte (RIB) given, put its address in transfer control table.To: Main Storage IPL Phase 3 -#MSIPL (Diagram 1.4)
•
Call main storage relocating loader (control storage function) to load the resident routine.fJ
Find space for command processor work area.Build command processor image matrix and order index.
Reset task work area index to all available work space.
Reset task work area (first track) to binary zeros.
Find space for temporary work station queue (to be used during IPL).
Allocate space from TWA for command reject file.
If no space available for work station queues, call dump main storagelterminate task routine (control storage function) to eliminate IPL procedure.
Diagram 1.3 (Part 1 of 2). Perform Main Storage IPL Phase 2 Processing
Method of Operation 1-7
Licensed Material-Property of IBM
MODULE/
OEseR IPTION ROUTINE
IJ
Read terminal information blocks into work area. Disk lOSInitialize terminal unit blocks (TUB) based on system configuration record information: # MSTWA
•
Set work station 10.•
Initialize common TUB fields.•
Set system printer TUB address in SeA.•
Set task work area address.II
Allocate work space in task work area.Write work station configuration record to disk. Disk lOS
Initialize local area of task work area. # MSTWA
II
Build entries for diskette from unit definition table (UDT) information.Build communication entries from communication configuration record information.
II
Initialize command reject file data areas.Build arid queue error recovery blocks (ERB) for disk and diskette.
Load and pass control to main storage IPL phase 3 (#MSIPL).
"
Diagram 1.3 (Part 2 of 2). Perform Main Storage IPL Phase 2 Processing 1-8
Licensed Material-Property of IBM
From: Main Storage IPL Phase 2
o
Perform main storage IPL sign-onfI
Process override information if necessaryII
Initialize system print spool functionD
Complete nucleus initialization----:&l
To: Command Processor Resident Router -#CPML (Diagram 2.1)
MODULE/
OESeR IPTION ROUTINE
D
Post task control block (TCB) for request-enter sign-on. #MSIPLSearch terminal unit block (TUB) chain for system and alternate consoles.
Check system console for errors.
If no system console errors, simulate REQ-ENT request.
Wait for console input.
If request-enter is from console, process R EQ-ENT request. #CPTC
If request-enter is not from console: #MSIPL
•
Build assign accept/input parameter list.•
Accept input from console. #WDDA•
If alternate console, enable request-enter and call request enter transient (#CPTC). #MSIPL•
If master console, call sign-on transient (#CPON) to process sign-on information.•
Prompt for file rebuild options. #MSRIDCheck for override request-entered at sign-on.
D
Build override format index: #MSRID•
Read override format index from disk. Disk 105•
Build in-core format index. #MSRIDDiagram 1.4 (Part 1 of 6). Perform Main Storage IPL Phase 3 Processing
Method of Operation 1-9
Licensed Material-Property of IBM
MODULE/
DESCRIPTION ROUTINE
Prompt for general system parameters:
•
Issue invite to display unit. #WDDA• • •
Build output work station data management parameter list. Prompt for: #MSRID #DWDMfill -
Date.-
Single program mode.-
Console status.-
Command language.•
Build input work station data management parameter list. #MSRID•
Issue call to work station I/O to accept input. #WDDA•
Set appropriate system communication area (SCA) indicators for answers to general system prompts. #MSRID Prompt for work station data management options (transient or resident).Call transient #MSOER to prompt for job queue and spool parameters.
Ensure that job queue is configured before issuing prompt for job queue parameters. #MSOER Build output parameter list for work station data management to prompt for:
•
Job queue size.•
Job queue reformat.•
Job queue start.Display prompts. #DWDM
Build work station data management parameter list to accept answers to prompts. #MSOER
Issue call to work station I/O for accept-input. #DWDM
Check job queue size. #MSOER
Set appropriate SCA indicators for answers to job queue prompts.
Display prompt for: #DWDM
•
Cancel spool?•
Cancel job queue?•
Delete spool file?•
Delete job queue?Build parameter list to accept answer to pr~mpt. #MSOER
Issue call to work station I/O for accept-input. #DWDM
If cancel spool - yes, return to #MSRI D #MSOER
If cancel spool - no:
•
Build work station data management parameter list to prompt for:-
Resident spool writer.-
Spool writer priority.-
Intercept buffer size.-
Spool writer buffer size.•
Display prompts. #DWDM•
Build input parameter list. #MSOER• •
Issue call to work station I/O for accept-input . #DWDM~
•
Ensure legitimate answers to prompts and set appropriate system indicators. #MSOER•
Build work station data management parameter list to prompt for print spooling disk parameters:-
Spool file size.-
Reformat spool file at IPL.-
Disk A or disk B reference.I
Diagram 1.4 (Part 2 of 6). Perform Main Storage IPL Phase 3 Processing 1-10
Licensed Material-Property of IBM
MODULE/
OEseR IPTION ROUTINE
•
Issue a call to work station I/O to display prompts. #DWDM•
Build an input parameter list. #MSRID•
Issue a call to work station I/O for accept-input. #DWDM•
Ensure legitimate answers to prompts and set appropriate system indicators. #MSOER Return to #MSRIDBuild a work station data management parameter list to prompt for performance parameters: #MSRID
•
Work station queue space size.•
Assign/free request size.•
Trace buffer size.Issue call to work station I/O to issue prompts. #DWDM
Build input parameter list. #MSRID
Issue call to work station I/O for accept-input. #DWDM
Ensure legitimate answers to prompts and that enough main storage space exists. #MSRID Set appropriate system indicators for prompt answers.
Return control to #MSIPL.
Build second TUB for command processor. #MSIPL
Log control storage processor errors.
Put system date in configuration record:
8 Read configuration record from disk. Disk 105
• •
Update configuration record. #MSIPL~
•
Write configuration record back to disk. Disk 105Change command language for command processor to native/English if necessary: #MSIPL
•
Find command processor router routine - #CPRT (command processor load module).•
#CPRT contains commands to be changed. Start control address of #CPRT indicates start of command table. Each entry is 14 bytes long.•
Retrieve commands from the message member (##MSG2).•
Update commands as required.II
Ensure that spool is on system (SCAMSPOL) and job queue is on system (SCAMJOBQ).Calculate size of spool buffer pool.
Assign spool buffer pool space.
Save pool size and writer buffer size.
Set up spool intercept function:
•
Find spool intercept routine (#SPINT). #MASFN•
Assign space to load #SPINT. #MSIPL•
Load #SPINT using main sto~age relocating loader - SVC 52 (control storage function).II
Call main storage allocate transient (#MSSaS) to resolve main storage areas.Assign storage for work station queue space: #MSSQS
•
Free work station queue space assigned for IPL sign-on.•
Assign work station queue space for system operation.Build system queue space (control storage microcode function).
Diagram 1.4 (Part 3 of 6). Perform Main StoragelPL Phase 3 Processing
Method of Operation 1-11
Licensed Material-Property of IBM
OEseR IPTION MODULE/
ROUTINE
Build user main storage area: #MSSOS
0 Use last FOE accessed to find first 2K block of user main storage following assign/free area.
e
Chain user main storage 2K blocks together, excluding any bad 2K blocks.•
Clear 2K blocks to binary zeros as blocks are added to chain.e
Check for the following conditions:-
Any bad 2K main storage blocks (SCA2KBAD).-
Insufficient region size (SCADRGSZ).-
Maximum nucleus size exceeded.•
Build error message parameter list, including error message identification code (MIC).•
Issue error message. #CMCUReturn control to #MSIPL. #MSSOS
Put up sign-on display screen: #CPON
•
Set IPL sign on code (CPCODE).•
Display sign on scr~en.Clean up any outstanding invites on other terminals: #MSIPL
•
Examine TUBs.•
If work station TUB, enable system request.•
If console, signed on console and issue invite.•
Stop outstanding invites. #CPTCGet JCB space (JCB will be used to attach file rebuild (#MSBLD)). #MSIPL
Build attach parameter list.
Indicate file rebuild called (SCAMBLD).
Indicate IPL sign~on complete (SCAMIPL).
Call attach transient (#SVAT) to attach #MSBLD.
Perform command processor resident functions (#CPML) until #MSBLD is finished.
Call spool file IPL (#MSSP) to allocate and format spool file and spool buffer pool.
If spool not supported (SCADSSPR), go to D O . #MSSP
If delete or cancel request (SCADSSPR):
•
Read VTOC to find file to delete. #CSVF• •
Build file specification block (FSB). #CAS1~
•
Delete file. #CAD1•
Set flag to 00 (SCADSSPR). #MSSP•
GotoD,O·Check for existing #SPOOL 1 file:
•
Build disk VTOC read/write parameter list.•
Read disk VTOC. #CSVFIf #SPOOL 1 file found:
•
Read #SPOOL 1 master index from disk. #DWDM•
If no entries on print queue or request to delete file (SCAMCRAN): #MSSP-
Read VTOC to find file to delete. #CSVF-
Build file specification block (FSB). #CAS1-
Delete file. #CAD1(
Diagram 1.4 (Part 4 of 6). Perform Main Storage IPL Phase 3 Processing 1-12
Licensed Material-Property of IBM
MODULE/
OEseR IPTION ROUTINE
Allocate primary print spool file: #MSSP
0 Set up special allocate DTF to allocate space for size given in IPLWKSIZ.
•
Allocate file space. #CAS1•
If file space not available, decrease file size by six blocks and attempt to allocate. If minimum size (12 blocks) #CMCU is not available, issue message, SPOOL NOT SUPPORTED THIS IPL, and go t o D O .Format print spool file:
•
Calculate maximum file size. #MSSPG Calculate size of each extent.
•
Calculate index size.•
Set up fields to indicate number of index entries needed for primary file and extents.0 Format master index and chain index entries together.
•
Write index entries out to print spool file. Disk lOS•
Write master index out to first sector of primary spool file.Set address of #SPOOL 1 in SYSCOM. #MSSP
Update master index:
•
G Find extents (#SPOOL2-6). #CSVF4
•
Find highest spool jobname. #SPQMGe
Update master index with new information. #MSSP0 Write master index back to primary spool file. Disk lOS
Format buffer pool by calculating number of intercept buffers. #MSSP
Look for job-in-process or active bits on in spool queue and set off if found. #SPQMG
G
Call input job queue IPL routine (#MSJQ) to 'format input job queue. #MSSPIf job queue not supported (SCADSSJQ), return to #MSIPL. #MSJQ
If delete or cancel request (SCADSSJQ):
•
Build file specification block (FSB). #CAS1e
Deallocate existing #JOBQ file. #CAD1•
Return to #MSIPL. #MSJQCheck for existing #JOBQ file:
Q Build VTOC read/write parameter list.
0 Read disk VTOC. #CSVF
~ If #JOBQ found: #MSJQ
~
•
Read first sector of #JOBQ file to check for data. Disk lOS..
If no data exists or reformat request: #MSJQ-
Build FSB. #CAS1-
Deallocate JOBQ file. #CAD1Allocate #JOBQ file: #MSJQ
e
Build DTF with #JOBQ file information.e
Allocate #JOBQ file. #CAS1If not enough space available for # JOBQ file requested: #MSJQ
•
Decrease file size by 2 blocks and attempt to allocate.•
If minimum size (4 blocks) is not available, issue message, INPUT JOBS NOT SUPPORTED THIS IPL, and #CMCU return to #MSIPL.Diagram 1.4 (Part 5 of 6). Perform Main Storage IPL Phase 3 Processing
Method of Operation 1-13
Licensed Material-Property of IBM
MODULE/
OEseR IPTION ROUTINE
Format JOBQ file entries:
•
Set up lOB with attributes for #JOBQ file. #MSJQ• Write formatted sectors to disk. Disk lOS
Update SCA with #JOBQ file address. #MSJQ
Return to #MSIPL.
If stop system command, call #CPTC to #MSIPL
set IPL processing complete (SCAMIPLC). #CPTC
Pass control to # CPM L. #MSIPL
(
Diagram 1.4 (Part 6 of 6). Perform Main Storage IPL Phase 3 Processing 1-14
Licensed Material-Property of IBM
From: CNFIGSCP Procedure
"'---~"''''''>'''''
D
Perform preliminary processing... o
Process configuration menuII
Process attachment parametersIII
Process general system parametersII
Process additional system parametersII
Process general print parametersIJ
Process spool parametersIII
Process performancep~rameters
II
Process program additions parameters1m
Perform final processingTo: Control Storage End of Job ($EOJ)
DESCRIPTION
D
Prepare disk lOB to read configuration records from disk.Perform read operation.
Open work station data management (WSDM) DTF.
D
Issue PUT to display configuration menu (display 1).Display configuration menu.
Issue GET to accept operator replies.
•
Retrieve operator response:If OPtion 1 (perform system configuration), set off display only switch (CNDSP).
If option 2 (perform limited configuration with reset), set off display only switch and go to
II.
If option 3 (perform limited configuration without reset), set off display only switch and go toO.
If option 4 (perform attachments change only), set off di,splay only switch and go to
II.
If option 5 (only display configuration parameters), set on display only switch.
If response was not option 1 through 5, prepare operator prompt (1) and return to Oto redisplay configuration menu.
Diagram 1.5 (Part 1 of 5). Perform System Configuration Processing ($CNFIG)
Con figu rati on
Method of Operation 1·15
Licensed Material-Property of IBM
..
DESCRIPTION MODULE/
ROUTINE
II
Prepare attachment parameters display (display 2). $CNFIG6)
Issue PUT to output display 2.Display attachment parameters screen consisting of: #DWDM
•
Unit address.•
Device type.•
LogicallD.•
Attribute.•
Default PRT.Prepare WSDM to retrieve operator replies. $CNFIG
Retrieve operator replies from screen. #DWDM
If display only request (CNDSP)' go t o l l ~
Validate operator replies: $CNFIG
•
Confirm unit addresses and device types.•
Check logical ID format.•
Check for duplicate I D.•
Check attribute format.•
Check attribute.•
Check default printer logical I D format.•
Check default printer assignment.If errors detected, prepare operator error message and return t o l l O . Modify configuration record based on operator replies:
•
Set logical IDs.•
Set WS/PRT attributes.•
Set default printer logical IDs.II
Prepare general system parameters display (display 3).6)
Prepare WSDM DTF to output display 3.Display configuration defaults consisting of: #DWDM
•
Date format .•
. Single program mode?•
Work station status after IPL.•
Command language.Prepare WSDM DTF to retrieve operator replies. $CNFIG
Retrieve operator replies from screen. #DWDM
If display only request (CN DSP), go to
m.
$CNFIGValidate operator replies:
•
Single program mode - Y or N.•
Console mode after IPL - A or B.•
Command language - A or B.•
Date format.If errors detected, prepare operator error message and return t o l l , e t o redisplay with error message.
Modify configuration record based on operator replies.
(
Diagram 1.5 (Part 2 of 5). Perform System Configuration Processing ($CNFIG) 1-16