GDDM V3R2 Base Application Programming Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF | BOOK


Creating an encapsulated PostScript file, a page segment, or an overlay

GDDM V3R2 Base Application Programming Guide
SC33-0867-01



If you need to include the formatted output of your program in another document, your application must create the pictures in secondary data stream. This secondary data stream can be an encapsulated PostScript (EPS) file, (if you want to include it in a PostScript document) a page segment (PSEG), (if you need to include a picture at a particular point in a document) or it can be an overlay (if you want to include some constant graphics, image, or text data such as a running heading in your document).

The text is prepared by another means, such as the IBM Document Composition Facility. You can then use CDPF or PSF to merge the illustrations and text to create a complete document.

To create an encapsulated PostScript (EPS) file, (if you want to include it in a PostScript document) a page segment, or an overlay for inclusion in another print data stream, you need to specify your choice on processing option 5 of the DSOPEN for the current device.


     DCL PROCOPT(6) FIXED BIN(31);

PROCOPT(1) = 5; /* File type */ PROCOPT(2) = 1; /* Page Segment */

PROCOPT(3) = 8; /* Size */ PROCOPT(4) = 60; /* 6 inches wide */ PROCOPT(5) = 30; /* 3 inches deep */ PROCOPT(6) = 0; /* 1/10 inch units */

DCL NAMELIST(1) CHAR(8);

NAMELIST(1) = 'PICTURE'; /* File name */

/* DEVICE_ID FAMILY TOKEN PROC_OPTIONS NAME_LIST */ CALL DSOPEN (12, 4, 'A3820Q', 6,PROCOPT, 1,NAMELIST);

If a picture contains text that uses the 4250 fonts (see "Using typographic fonts on a family-4 4250 printer" in topic 20.13) in addition to graphics, you would normally need to create a secondary data stream. This is to avoid exhausting CDPF program storage.

Go to the previous page Go to the next page



Copyright IBM Corporation 1990, 2012