PRINT/CHANNEL manual

Appendix A. Banner Page Detection Example

On some host computers, JES2 generates job separators (also called Job Start Banner and Job End Banner) for every job printed. In this example, the host computer was configured to generate one Job Start Banner and one Job End Banner for each job, as shown in Figures A-1 and A-2.

Figure A-1. Sample Job Start banner.

Figure A-2. Sample Job End banner.

The following portion of the sample banner page includes possible search data strings.

   1             18       25

   |              |        |

31-**START*****START*****START****

   *

   * JOBID:        JOB31241

34-* JOB NAME:     CCTEST

   * USER ID:      BARRGAT

36-* SYSOUT CLASS: S

   * OUTPUTGROUP:  2.1.1

   * TITLE:

The **START** string is a good search choice because it probably does not occur anywhere else in the data. It always shows up in column 1 of line 31 on this sample banner page. Similarly, the **END** string always appears on the sample Job End Banner.

The job name and class also print on the banner page so you can extract this information. The job name is three lines below and class is five lines below the **START** string. Both fields begin in column 18. The job name can extend as far as column 25.

Figure A-3 and Figure A-4 show you how you would enter this information on the PRINT/CHANNEL Printer Definition screen.

PRINT/CHANNEL Printer Definition

 
 
 

  Printer Address:        0E
Enable or Disable device? Enabled
...........................................................

Banner Recognition Information

   

  Remove banner pages after processing? No
Starting line: 31         Number of lines: 1
Header pages:   1         plus 0 additional page(s)
Trailer pages:  1         plus 0 additional page(s)

Text string 1 in column: 1
**START**


TRAILER
text string

Text string 2 in column: 1
**END**

Enter character

Figure A-3. Banner Recognition Information screen.

PRINT/CHANNEL Printer Definition

 
 
 

Printer Address:          0E
Enable or Disable device? Enabled
...........................................................

Print Job Parameter Extraction Information

 
 

(These parameters are extracted from the first page of
the job. This will be the first banner page if present.)

Line numbers are relative and are measured BEFORE or
AFTER the banner text matching line.

          Acquire  Line    Beg Col    End Col
Job name: AFTER      3      18        25
Form name:  NO       0       0         0
FCB name:   NO       0       0         0
Copies:     NO       0       0         0
Priority:   NO       0       0
Class:    AFTER      5      18

 

Choice? + -

Figure A-4. Print Job Parameter Extraction Information screen.