• Aucun résultat trouvé

ASSIGN Command Processin&

Dans le document Xerox Control Program for Real- Time (CP-RJ (Page 62-78)

The IASSIGN commands are read from the "C" deviee by the JCP, and are primarily used to define or ehange the

VO

deviees used by a program. The (ASSIGN command can also be used to change parameters in a DCB. Sinee all IASSIGN commands must be input prior to the RUN or Nome eommand (where Name is the name of a processor or user program file in the SP area) to which they apply, the information from eaeh IASSIGN command is saved in eore by the JCP. The JCP builds on ASSIGN table eontaining the information from each IASSIGN command. This table consists of ten words for each IASSIGN, plus one word specifying the number of ten_ord entries. The table remains in a job-reserved page and is passed to the Background Loader. After the Background Loader initiates the program, it makes the appropriate changes to the program's DCBs from the information in the ASSIGN table. The ASSIGN table can then be destroyed as the program executes; therefore, IASSIGN eommands take effect only for a job step and not on entire job. The ASSIGN table has the format shown in Table 1.

_ ._~ -~-'. -. _-. --: :. -r- _ - ..

Get Master mode, unprotected.

Set prompt for type-writer input.

no

Get a job-reserved i'IIIy .... e_s _ _ _ _ _ _ ~page. Initialize for

ASSIGN table and Control Command buffer.

Purge all BT files hich are not SAVE

no

Figure18. Initialize JCP yes

Output message:

SCHING FOR JOB COMND.

55

56

Read C without wait.

Check the C Read withaut wait.

no

busy

_0

_!e.!~~~

Treat as processor

L -_ _ _ ~~ name.

'"---'

Figure 19. Read and Process JCP Commands

.,

,

r

(-2-second SlIM ER without wait.

WAITANY.

no

Delete SllMER request.

Figure 20. Wait for JCP Command

request.

57

58

no

Select error message

yes

Identify error to op-erator then WAIT

no

Log current command

Set

flag: skip to next job

tput message:

SCHING FOR JOB 1--..., COMMl\ND

Figure 21. ProceS5 JCP Command Errors

(

Set default account user name, priority.

Get specified accaunt, user name. priori ty •

Get default job number.

Initialize flags, pointers, and GO and OV sizes.

Purge all X: files.

yes

yes

Figure 22. JOB Command Flow

Initialize ALLOBT control tables.

Select error message

59

60

Wait for unfinished services

Log FIN command

Finalize flags

Release job-reserved page used for ASSIGN table and control command buffer

Figure 23. FIN Command Flow

- I

- )

(-no

Get I/O medium specification

Save I/O medium spec i ficat ion

Pack next ASSIGN table entry. Update ASSIGN table size and address

log warning message

lOve value

Figure 24. ASSIGN Command Flow

- ,

,

61

62

Format and pri nt accounting log on LO device.

e

E 1 0 f----~.~I

l

Enter EOF returned from here when Accounting Log If purge option,

purge AL file by rewioding ALand write an EOF.

Exit from DAL command

Figure 25. DAL Command Flow

Exit from ATIEND command

Figure 26. ATIEND Command Flow

Set flag not to wait after mes-sage is output.

Output message on "OC" devi ceo

Figure 27. MESSAGE Command Flow

-,

~\

Set flag to wait after message is output.

Figure 28. PAUSE Command Flow

Set "C" op label to previous assignment.

Clear flag that TV key-in was active.

Figure 29. CC Command Flow

Figure 30. UMIT Command Flow

63

· .

no

SCAN Get op labe I to change assignment.

Get new assignment for op labe I •

Set new assignment for op labe I •

yes, exit

Figure 31. STDLB Command Flow

public li!lrary

Rescan fi Ie name. Set area to system processor alter-nate area. Set account to system. Assign DCB to load module.

Save file name in alarm messages.

Do READ CAL to read in fi Ie header of program to execute.

Output "file nonexistlJ alarm and take error exit

secondary

Go through tables set by ALLOBT command and set up all Bckg. Temp Files input on ALLOBT.

primary

Figure 32. NAME Command Flow

.I

Error if no "FGIJ key-in.

Error if program in BT area and not on OV file.

65

66

Go to NeO S8R to do special check and allocation for AP.

yes Setupall8ckg. Temp Fi 181 that get defaul t allocation.

and area for 8ckg. loader

Output

"8T OVERFLOW"

alarm.

e error exit

Figure 32. NAME Command Flow (cant. )

Do RUN CAL so foreground program wi II be loaded and started.

Inspect stotus posted and output an alarm if appropriate.

Set default priority

Figure 33. RUN Command Flow

Figure 34. ROV Command Flow

Figure 35. INIT, SJOB, or BATCH Command Flow

Get priority and/or DEBUG if specified

67

68

Scan command and save all parClTleters in temporary cells.

If fonnat not input by user, set to un-blocked. If GO fi Ie, set to blocked.

If fi Ie size not in-put, set default to 1000 records.

Calculate number sectors needed for fi I e based on for-mat of file.

Save info. aboutfjle in penn. JCP tables (CFORM, RSIZE, GSIZE, SAVE).

Figure 36. AllOST Command Flow

(-Set up cells to dump in K:PMD for Post-mortem Dump routine.

Figure 37. PMD Command Flow

Do proper CA l to position device to proper place.

Figure 38. PFIL, PREC, SF1l, REWIND, and UNLOAD Command Flows

to wri te proper num-ber of EOFs.

Figure 39. WEOF Command Flow

69

70

.- . Table 1. ASSIGN Table Description

Word Description

-0 Contains number of entries in table. Must fallon an odd virtual address. Is pointed at by K:ASSIGN.

lOn+1 thru Entry number n, described in more detail below.

lOn+10

lOn+1, 10n+2 EBCDIC name of DCB associated with entry n.

lOn+3 Flags con troll ing I/O medium name representation. Bit 1 is set for an oplabel name,

right~1 igned in word lOn+4. Bit 2 is set for a device name left~ligned in words lOn+4, lOn+5. Bit 3 is set for a disk area name right~ligned in word lOn+4, and a file name left~ligned in words 10n+5, lOn+6. If a file name is all blank or all zero, a whole disk area is indicated. Bit 13 is set for a disk file account name in words

1 On+7, 1 On +8.

lOn+4 thru The EBCDIC name of an

1/0

medium, formatted as indicated by flags in word lOn+3.

1 On +8 ~ '_I

lOn+9, lOn+10 Indicator flags and values for changes to DCB fields other than those identifying the

1/0

medium.

1 On +9

1~1~1~1~1~1~ltl~I~I~16V I~I

7V

Il~

lOn+10

I

8V

I~~

kC: if reset kV is unused; if set, kV is to be inserted.

1V: value for MOD field 2V: value for ASC field 3V: value for DRC field 4V: value for Dip field 5V: wlue for VFC field 6V: value for BTD field 7V: value for NRT field 8Y: val ue for RSZ field

Dans le document Xerox Control Program for Real- Time (CP-RJ (Page 62-78)

Documents relatifs