Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!bellcore!petrus!sabre!zeta!epsilon!gamma!ulysses!cbosgd!ucbvax!info-vax From: info-vax@ucbvax.UUCP Newsgroups: mod.computers.vax Subject: Re: Calling PRINT from a C program Message-ID: <8602111901.AA17116@seismo.CSS.GOV> Date: Mon, 10-Feb-86 09:57:53 EST Article-I.D.: seismo.8602111901.AA17116 Posted: Mon Feb 10 09:57:53 1986 Date-Received: Fri, 14-Feb-86 03:43:40 EST References: , <86020 Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: yetti!oz@seismo.CSS.GOV (Ozan Yigit) Organization: York U. Computer Science Lines: 38 Approved: info-vax@sri-kl.arpa In article <8602062145.AA26209@ucbvax.berkeley.edu> RAY@SRI-KL.ARPA writes: > >The best way to submit a print job if there are no options is to, works >for both v3.x and v4.x, is to set the FAB$V_SPL bit in FAB$L_FOP in the >file FAB (Translation set the bit that says this file should be spooled >to SYS$PRINT in the long word Fab OPtions of the File Access Block). >If you need to specify a different queue with options then the best >bet is to use the $SNDSMB system service for V3.x or the $SNDJBC system >service for V4.x (The $SNDSMB is being replaced). You should refer >to the "Record Managment Services" and "System Services" for details >on the different methods. > >Lib$spawn requires a CLI to do it's setup and therefore doesn't work >from a detached process. > >Ray The best way ??? For a macro programmer, perhaps !! What is wrong with fopen(file_spec, a_mode, ... "fop=spl"); or open(file_spec, flags, mode, ... "fop=spl"); Which opens the file for "spool on close". Of course, if the file did not yet exist, one can use "creat" with the same attribute. See PROGRAMMING IN VAX C (ordr # AA-L370B-TE) pages: 18-3 to 18-6 (create) 18-7 to 18-9 (open) 16-10 (fopen) Oz ------- Usenet: [decvax|allegra|linus|ihnp4]!utzoo!yetti!oz Bitnet: oz@[yusol|yuyetti] FREE SOFTWARE FOUNDATION vs. EMPIRE. Watch for things to come..