3800 Model 1
In this example, the vertical spacing, channel codes, and length
of a form are specified, and the module is added to the SYS1.IMAGELIB
data set as a new member.
//FCBMOD4 JOB ...
//STEP1 EXEC PGM=IEBIMAGE
//SYSUT1 DD DSNAME=SYS1.IMAGELIB,DISP=OLD
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
FCB CH1=1,CH6=33,SIZE=70,LPI=((8,32),(12,2))
NAME TGT
/*
The control statements are discussed below:
- The SYSUT1 DD statement includes DISP=OLD to ensure that no other
job can modify the data set while this job is executing.
- CH1=1 specifies channel 1 code for printable line 1.
- CH6=33 specifies channel 6 code for line 33.
- LPI=((8,32),(12,2)) specifies that the first 32 printable lines
of the form are to be at a vertical spacing of 8 lines per inch, and
the next 2 printable lines are to be at a vertical spacing of 12 lines
per inch.
- SIZE=70 specifies that the length of the form is 70 tenths of
an inch, or 7 inches. Because there are 6 inches of printable lines
in a 7-inch form and the LPI parameter specifies 32 lines at 8 lines
per inch, or 4 inches, and 2 lines at 12 lines per inch, or 1/6 inch,
the vertical spacing for the remaining 1-5/6 inches defaults to 6
lines per inch.
Therefore, the form consists of lines 1 through
32 at 8 lines per inch, lines 33 through 34 at 12 lines per inch,
and lines 35 through 45 at 6 lines per inch, with channel codes at
line 1 and line 33.
- The name of the new FCB module is TGT; it is stored as a member
of the SYS1.IMAGELIB data set.