Operating System - OpenVMS
1752590 Members
2805 Online
108788 Solutions
New Discussion юеВ

OpenVMS PRINT/HEADER - Changeable?

 
SOLVED
Go to solution
Dan Herron
Advisor

OpenVMS PRINT/HEADER - Changeable?

When using the PRINT/HEADER command the default
heading is the full file specification and a page number. Is there a way to change the heading so that includes the user id of the person that submitted the print job?

Thanks for your help,
Dan Herron
13 REPLIES 13
Volker Halle
Honored Contributor
Solution

Re: OpenVMS PRINT/HEADER - Changeable?

Dan,

to achieve this, you might need to write a modified print-symbiont by replacing the PSM$K_PAGE_HEADER routine and using PSM$READ_ITEM_DX to obtain the information to be printed on the first line of each page.

See the Utility Routines Manual.

Volker.
Hakan Zanderau ( Anders
Trusted Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

I will take a look at it.......

What symbiont are we talking about ??

SHOW QUEUE/FULL
( look at /PROCESSOR )

Hakan
AKA "The GreenCapped PrinterGuru" ;-)
Don't make it worse by guessing.........
Dan Herron
Advisor

Re: OpenVMS PRINT/HEADER - Changeable?

Hakan,

PROCESSOR=DCPS$SMB

Thanks,
Dan
Hakan Zanderau ( Anders
Trusted Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

Do you know what version of DCPS you are running ?

Hakan
Don't make it worse by guessing.........
Dan Herron
Advisor

Re: OpenVMS PRINT/HEADER - Changeable?

Hakan,

It looks like we are running DCPS Version V1.1A.

Pretty old version, I think,
Dan
Hakan Zanderau ( Anders
Trusted Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

Dan,

DCPS V1.1A is VERY old ;-)
I don't think there is a simple way to change the headerinformation, but I have sent a mail to DCPS-engineering about this thread.

Hakan
Don't make it worse by guessing.........
Volker Halle
Honored Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

Dan,

you can't modify a DCPS print-symbiont with the PSM$REPLACE method described above, because it already is a modified print-symbiont.

If DCPS itself does not provide a method to change the /HEADER line contents, then the answer to your question will be: no.

The current DCPS (V2.7) user guide describes, that the header line consists of: file name, page number, and file creation date.

Volker.
Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

If you replace all print commands by a @DCL procedure you can modify the file to be printed before you do the print (or better, create a temp file that you will print).

You just have to read the input file and put a header line + blanc line in the beginning of the file and after each form feed.

Not ellegant but works on all VMS versions.

Wim
Wim
Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

... Of course only for listings not relying on auto line feed (of the form).

Wim
Wim