[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

[sqr-users] Prefixing print control lines to SQR output.




We have a requirement to send output from SQR reports to an OCE printer.
The SQRs run in PeopleSoft Process Scheduler which sends the output to the
printer under the batch server account of PSPRCS. This means that the user
name and print name are not identified in the print queue.
I have been advised that a solution is to prefix the output with the
following lines:

@PJL COMMENT OCE *JEC BEGIN
@PJL COMMENT OCE IDENT:
@PJL COMMENT OCE  EMULATION PCL5
@PJL COMMENT OCE  JOBNAME enter jobname here
@PJL COMMENT OCE  USERNAME enter username here
@PJL COMMENT OCE  JOBTYPE AUTOMATIC
@PJL COMMENT OCE *JEC BODY

My problem is how to do this, (including inserting the jobname and username
at run time).

The closest I have got is by using the 'init-string' parameter of
'declare-printer'.
This puts the above lines near to the front of the file, however
1. they are still preceded by a couple of format control characters, which
prevents the OCE printer from recognising them.
2. as 'init-string' requires a literal, and won't take a variable, I am
unable to work out how to insert the jobname and username.
Any helpful advice on this one would be much appreciated.





Oxfam works with others to find lasting solutions to poverty and suffering.

Oxfam GB is a member of Oxfam International, a company limited by guarantee and 
registered in England No. 612172.  
Registered office: 274 Banbury Road, Oxford OX2 7DZ. 
Registered charity No. 202918. 

http://www.oxfam.org.uk -- breaking news, emergency information, and enhanced 
content is only a click away.


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users