Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!ucbcad!ucbvax!ucdavis!deneb.ucdavis.edu!ccscott From: ccscott@deneb.ucdavis.edu (Scooter) Newsgroups: comp.os.vms Subject: Re: Printing from inside a program. Message-ID: <759@ucdavis.ucdavis.edu> Date: 28 Dec 87 05:14:21 GMT References: <12355095965.50.JDM@XX.LCS.MIT.EDU> Sender: uucp@ucdavis.ucdavis.edu Reply-To: ccscott@deneb.ucdavis.edu.UUCP (Scooter) Organization: University of California, Davis Lines: 14 Keywords: Spooler, queues In article <12355095965.50.JDM@XX.LCS.MIT.EDU> JDM@XX.LCS.MIT.EDU (Joshua D. Marantz) writes: >I would like to spool a file to SYS$PRINT or another print spooler from >a program. I know I could lib$spawn a print command, and look at the >termination status, but I was hoping for a cleaner, faster way. Any >ideas? >------- One way to spool files to the various queues is with the SYS$SNDJBC call. To use the service, specify that you want to do an add job command (rtfm) as your argument to SYSSNDJBC, and fill in the item stuff as per the doc- umentation. If you want an example, let me know, and I will send you some of the stuff I have done with the queue controller. I think if you can figure out lib$spawn, you shouldn't have any trouble with this .... -scott (formerly VMS Scooter, but alas, I got a real job ... :-( ) ucbvax!ucdavis!deneb!ccscott or some such.