• Keine Ergebnisse gefunden

Specifying Unique Load Codes

Im Dokument 0 0 (Seite 181-186)

A load code buffer controls what characters are printed by yourprinter. Codes corresponding to the characters on your print band or cartridge are placed in the bufferandwhenever a particular code is encountered, the character equated (via the load code buffer) with that code is printed. (To simplify this discussion, we’ll use the term print cartridgefrom here on to meanprint band orcartridge.)

For non-SDMA printers (0770and 0776), the default contents of the load code buffer are set at SYSGEN time; there is a unique buffer for each printer type. One of the uses of the LCB job control statement is to override these specifications-to equate different codes with different characters so that you can change print cartridges. You define a load code buffer by specifying an 8-bit code for each character on the

cartridge. Whenever that code is encountered, the corresponding character is printed.

For SDMA printers (class I, II, III), each print cartridge contains itsown

corresponding load code buffer. Therefore, you don’t need to define a unique buffer in an LCB statement when you change cartridges. if you do, it is ignored. As you’ll see, though, the// LCB statement has other uses.

There are two formats for the LCB statement, one for non-SDMA printers and the other for SDMA and AP9215-1 printers. The format for non-SDMA printers is:

//[symbot] LCB fX’hex-strng-1’

1

rrx’hex-string.2’

1

i..., fX’hex-stririg-n’

c’char-string-1’ Lld1tn9.2hi lC’char-string-n’

[,CARTNAME=symbot]

LNAME= 48-BUS

I

48-Sd

I

63-STD

I

OWNLC1

L

[JCARTID= IX’aa’

L

1C’c’

[,NUMBCHAR=n]

LTYPE= [0770

L

j0776

[JSPACE=[X! aa’

L

I.X’40’

continued

70044623-000 6-il

Making Job Control Work for You

JJMISM= ir.NQRE

L

1REPORT

[DUAL= X’ xxyyxxyyxxyyxxyy’

I

C’abababab’

I

C’bbbb’

L

LMISMCHAR= fx’aa’

L.x

The only parameters that have practical use for SDMA printers aresymbol, CARTNAME, NAME, TYPE, andMISM.

The format of the LCB job control statement for SDMA and AP9215 printers is:

1/ [symbol] LCB Efl.4AME=symbol]

[JNAME= 48-BUS

I

48-Sd 63-STD

L

OWNLC1-OWNLC9

J

[,TYPE=SDMA]

LMISM=

f

IGNORE

L

1REPORT

Thesymbolin the label field is a 1- to 8-alphanumeric character nameand canhave one of the following uses:

• To specify a default cartridge name when you omit the CARTNAME parameter

• To specify the name of a filed load code buffer that you’re changingviathe job SG$PRB

Use ofsymbolwill become more clear after we discuss the CARTNAMEandNAME parameters.

For non-SDMA printers, you use the first parameter of the LCB statement to assign the codes for each graphic symbol on the print cartridge by specifying either the X’hex-string’(hexadecimal) orC’char-string’. You need two hexadecimal characters or

one EBCDIC character for every symbol. The position of each in the string of parameters must correspond to its position on the print cartridge. As many

6-12 70044623-000

Making Job Control Work for You

parameters as you need to specify the entire print cartridge may be used; you may intermix the character and hexadecimal strings as required. Since the single quote (apostrophe) and ampersand (&) symbols have special meanings to job control, they must always be coded in hexadecimal. Statement continuation is only allowed between parameters; individual character strings can’t be coded on one job control statement and continued on another. When using hexadecimal character strings, the number of digits must be even.

Note: Thecharacter strings for your printer are shown intheappropriate printer subsystem manual.

The CARTNAME parameter specifies the name of the print cartridge to be used. Your installation is responsible for assigning a unique, 1- to 8-alphanumeric character name to each cartridge. SCIENCE, for example, could be used for a scientific character set.

When you provide a cartridge name in theIILCB statement, the operator. is requested to mount the cartridge just before the file starts printing. The output is not printed until the operator mounts the cartridge and replies to the message. Remember, if you don’t specify a cartridge name, the cartridge that’s already on the printer is used. So, to ensure use of the proper cartridge and to avoid printing of the wrong characters, you should specify a cartridge name.

You can usesymbolin the label field of the LCB job control statement (instead of CARTNAME) to specify a cartridge name. If you use bothsymboland CARTNAME to specify a cartridge name, the CARTNAME parameter takes precedence.

You specify NAME when you want to use one of the filed load code buffers (48-BUS, 48-SCI, 63-STD, or OWNLCn) established at SYSGEN time or by use of the job SG$PRB. There is aunique 48-BUS, 48-SCI, 63-STD, and OWNLCn foreach printer type. (There is also a default load code buffer for each printer type when noIILCB statement is specified.) NAME indicates that you want a filed load code buffer; you’re not establishing your own. Therefore, CARTNAME, TYPE, and MISM are the only other parameters you can specify when you use NAME.

The NMIIE parameter specifies the name of the filed load code buffer, which in turn specifies a cartridge name. So, when NA?VIE is specified, CARTNAME is unnecessary.

As mentioned earlier, you can also usesymbolfor the name of a filed load code buffer.

This is done only when you are executing the job SG$PRB to change a filed load code buffer (48-BUS, 48-SCI, 63-STD, or OWNLCn) via the job SG$PRB. If this is the case, you usesymbolto specify the name of the buffer to be changed. This is the only time symbol indicates a load code buffer name. At all other times it indicates a default cartridge name if you omit the CAl? TNAME parameter. See the appropriate installation guide for more information about the job SG$PRB.

70044623-000 6-13

Making Job Control Work for You

The CARTID parameter specifies a cartridge or band identifier. It may be either two hexadecimal digits (X’aa’) or one EBCDIC character (C’c’). This parameter is required for non-SDMA printers (0776and 0770) and must agree with the number found physically on the cartridge.

The NUMBCHAR parameter applies only to non-SDMA printers and specifies the totalnumber of graphic symbols expected on the print cartridge. As a safety check to make sure you specified all characters, this number should coincide with the number of characters specified in the character strings. When you omit NUMBCHAR, the number of characters specified by the character strings is assumed to be correct.

To identify the printer for which the LCB job control statement is constructed, you use the TYPE parameter. From this, we can see that an LCB job control statement coded for onetypeof printer cannot be used for another type.

The 0770 and non-SDMA 0776 printers are available only on the models 8/1 0/1 5/20/50 systems. For all other non-SDMA printers, enter*for the TYPE parameter and use the logical unit number to specify the type of printer. Specify SDMA for the TYPE parameter if you are a model 7E user with an AP9215-1 printer.

You specify the space, or nonprinting code, for non-SDMA printers through the SPACE parameter. This code is not included in either the X’hex-string’ or C’char-string’ parameters. It may be either two hexadecimal digits (X’aa’) or one EBCDIC character (C’c’). The default value is X’40’.

A mismatch occurs when youtryto print a character that is not in the load code buffer or has not been specified as a dualed character. Youcanuse the MISM parameter to record character mismatch errors in the system error log by coding MISM=REPORT.

The default, MISM=IGNORE, means that mismatches aren’t recorded.

For the 0770 or 0776 printer, you have a choice as to the replacement symbol. If you specify in EBCDIC, you would use the DUAL—C’abababab’ parameter, with a being a character that is on the print cartridge and b being the character that a replaces. For example, assume that the print cartridge contains the asterisk symbol (*) but not the question mark symbol (?). You could substitute*for ? in the printout by specifying DUAL=C?’. Every time the program outputs the EBCDIC code for a question mark, an asterisk appears in the printed listing.

If you specify in hexadecimal, you would use the DUAL=X’xxyyxxyyxxyyxxyy’

parameter, where xx is the code for the character printed and yy is the code of the character that xx replaces.

We’ve already said that when a character mismatch occurs, you can use the MISM parameter to record it in the error log. For non-SDMA printers, you may also specify a character that’s to appear on the printed output in case of a character mismatch;

otherwise, a blank will appear (the default value X’40’). This is done with the MISMCHAR parameter. You can specify any character you want, in either

hexadecimal (X’aa’) or EBCDIC (C’c’), as long as the character also appears in either the X’hex-string’ or C’char-string’ parameter.

C

6-14 70044623-000

Making Job Control Work for You

Here is an example of how the LCB job control statement is used for a non-SDMA printer:

Co(umn 72

1. I/DVC28 -

-2. II LCB Ch/._* XJ7D! ,C’+,S’’)( Ø123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ’, X 3. Ill NUMBCHAR=48,CARTID=X’02’ ,TYPE=0770,DUAL=CI*?I X 4. 112 CARTNAME=SCIENCE

5. II LFD PRINTOUT

1. The DVC job control statement has 28 for the logical unit number, indicating that a 0770 printer must be used.

2. This gives the actual character set for the load code buffer. Notice the shaded area; this is where a switch is made from specifying in EBCDIC (C) to hexadecimal (X). We did this because we want to specify a single quotation mark (apostrophe) for the load code. Since a single quotation mark begins and ends each character string, coding the single quotation mark as an EBCDIC character would have terminated the character string, and the remaining characters would be invalid. So, we ended the character string after the last character before the single quotation mark (the

asterisk), specified the single quotation mark in hexadecimal (7D), and then continued with the next character (a plus sign) in EBCDIC. The comma character for the load code (after the plus sign) will not end the character string because it’s enclosed within single quotation marks.

3. The NUMBCHAR parameter indicates that there are 48 characters in the print cartridge, if we missed specifying a character in the character string parameter, this would cause an error, so we’d know that we forgot a

character. The CARTID parameter indicates a cartridge identifier of 02, and we’re using a 0770 printer (TYPE parameter). The DUAL parameter

indicates that three nonprintable characters (?,>, and <) are going to be appearing during the job, and gives the printable characters (*,“,and +) that will replace them.

4. When this print file is opened, the operator receives a message telling him to mount the cartridge named SCIENCE.

5. Provides the file name for the print output file and completes the device assignment set.

70044623-000 &15

Making Job Control Work for You

Here is a similar example of how the LCB job control statement is used for an SDMA printer:

II DVC 220

1/ LCB TYPE=SDMA,CARTNAME=SCIENCE

Some points to remember when coding the LCB job control statementare as follows:

• Youcanalways specify the CARTNAME and TYPE parameters.

• If you specify NAME to indicate a filed load code buffer, you cannot specifyany other parameters except CARTNAME, TYPE, and MISM.

• If you’re using the job SG$PRB to change a filed load code buffer, usesymbolto specify the name of the buffer rather than NAME.

Im Dokument 0 0 (Seite 181-186)