Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
Wim Van den Wyngaert
Honored Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

... or spool the file to a temp file called "xxx_USERNAME" and then do the print. The username will be in the filename of the header. You can even include creation time in the file name.

Wim
Wim
Hakan Zanderau ( Anders
Trusted Contributor

Re: OpenVMS PRINT/HEADER - Changeable?

Dan,

Is DCPS a requirement ?
What version of VMS are you running ?
Are there other OS (servers) in your environment ( Unix, Linux, Windows ) ?

Once I solved a very complex printproblem by sending a VMS-printjob through a UNIX-server.......

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

Re: OpenVMS PRINT/HEADER - Changeable?

dcps is a requirement.

Thanks to everyone for all their help and suggestions. I will take them under advisement.

Thanks again,
Dan Herrron
Dan Herron
Advisor

Re: OpenVMS PRINT/HEADER - Changeable?

Closing thread