Re: [U2] Line Printer Control
In smit, when you setup the queue new or change an existing 'virtual printer' a couple of settings that give me complete control in Unidata are: Send FORM FEED after each file = No Lines Per Page = Columns per page = Make sure you always set it up as a GENERIC printer and ASCII printer Sincerely, David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office: 810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com "Delivering Products, Services and Innovative Solutions" -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson Sent: Thursday, December 22, 2011 3:21 PM To: U2 Users List Subject: Re: [U2] Line Printer Control Yes, on AIX, if you are using System V printing, make sure you setup the printer like so: Sorry for the ugly output... Add Remote Printer Configuration Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * PRINTER name [Qtest] * SERVER name[dns-name-or-ip] + * PRINTER NAME on server [RAW] COMMENT[] CLASS name [] + -- Interface Program Options -- Printer TYPES [Other] + CONTENT TYPE [simple] + - Header/Trailer Page Options - Force BANNER? no + On Thu, Dec 22, 2011 at 3:14 PM, Dave Laansma wrote: > If you're on AIX, there are some settings in smit that may be causing > it too. > > Sincerely, > David Laansma > IT Manager > Hubbard Supply Co. > Direct: 810-342-7143 > Office: 810-234-8681 > Fax: 810-234-6142 > www.hubbardsupply.com > "Delivering Products, Services and Innovative Solutions" > > -Original Message- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John > Thompson > Sent: Thursday, December 22, 2011 3:14 PM > To: U2 Users List > Subject: Re: [U2] Line Printer Control > > If I remember correctly, when we converted from UltPlus to Universe... > I had to set the following in our master login paragraph (I know, I > know, probably not the best place for it) for a lot of legacy stuff. > > SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT > > Try that maybe? Shot in the dark. I do remember many hours pulling > my hair out over this though. > > On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman > wrote: > > > We still use a greenbar printer to print checks. > > > > Via a UniBasic program, I am trying to send an alignment pattern to > > the printer before starting the check run. > > > > The trouble is that it always does a form feed after the alignment > pattern. > > > > I have been diddling with toggling options in... > > > > execute 'SETPTR > > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' > > > > PRINTER OFF > > PRINTER CLOSE > > > > Help would be appreciated. > > > > --Bill > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > > > > -- > John Thompson > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Line Printer Control
We are on HP-Ux --Bill -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson Sent: Thursday, December 22, 2011 3:21 PM To: U2 Users List Subject: Re: [U2] Line Printer Control Yes, on AIX, if you are using System V printing, make sure you setup the printer like so: Sorry for the ugly output... Add Remote Printer Configuration Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * PRINTER name [Qtest] * SERVER name[dns-name-or-ip] + * PRINTER NAME on server [RAW] COMMENT[] CLASS name [] + -- Interface Program Options -- Printer TYPES [Other] + CONTENT TYPE [simple] + - Header/Trailer Page Options - Force BANNER? no + On Thu, Dec 22, 2011 at 3:14 PM, Dave Laansma wrote: > If you're on AIX, there are some settings in smit that may be causing > it too. > > Sincerely, > David Laansma > IT Manager > Hubbard Supply Co. > Direct: 810-342-7143 > Office: 810-234-8681 > Fax: 810-234-6142 > www.hubbardsupply.com > "Delivering Products, Services and Innovative Solutions" > > -Original Message- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John > Thompson > Sent: Thursday, December 22, 2011 3:14 PM > To: U2 Users List > Subject: Re: [U2] Line Printer Control > > If I remember correctly, when we converted from UltPlus to Universe... > I had to set the following in our master login paragraph (I know, I > know, probably not the best place for it) for a lot of legacy stuff. > > SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT > > Try that maybe? Shot in the dark. I do remember many hours pulling > my hair out over this though. > > On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman > wrote: > > > We still use a greenbar printer to print checks. > > > > Via a UniBasic program, I am trying to send an alignment pattern to > > the printer before starting the check run. > > > > The trouble is that it always does a form feed after the alignment > pattern. > > > > I have been diddling with toggling options in... > > > > execute 'SETPTR > > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' > > > > PRINTER OFF > > PRINTER CLOSE > > > > Help would be appreciated. > > > > --Bill > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > > > > -- > John Thompson > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Line Printer Control
We use this for a Universe driver... Maybe this is too much info for you... And this was written by another gentleman for AIX, basic line printer printing with System V printing. All of the internals I do not fully understand without more reading and refreshing my memory. # cat /usr/spool/uv/uv.drv #!/bin/sh # # Printer driver for UniVerse applications to record each print job. # # # UniVerse sends options along with the print file. This script captures # relevant information and creates a log entry for each print job. # # # Modified to do the awk on all print streams # # $1 = login userid # $2 = UniVerse queue jobnumber # $3 = size of the file in bytes # $4 = Print file name from UniVerse (from editor, not valid for SORT) # $5 = UniVerse form queue number # $6 = UniVerse spool queue name # $7 = columns width from setptr # $8 = rows on page from setptr # $9 = a 1 looks like it might be the print mode # $10 - $15 = 80 through 85 probably not used UVUID=$1 JOBNUM=$2 JOBSIZE=$3 JOBNAME=$4 FORMQ=$5 PRINTNAME=$6 JOBCOL=$7 JOBROW=$8 cpi=10 lpi=6 landscape=0 TUSER=`cut -f1,2,3,4 -d":" /etc/passwd | /bin/grep "!:$UVUID:" | /usr/bin/awk -F : '{print $1}` # logger -p local2.info "print $UVUID bx.drv -- $JOBNUM $JOBSIZE $FORMQ # $PRINTNAME $JOBCOL $JOBROW $TUSER" # logger -p local2.info "print $UVUID ts.drv -- $JOBNUM $JOBSIZE $FORMQ $PRINTNAME $JOBCOL $JOBROW $TUSER" lpcmd="" case "$PRINTNAME" in # ACCT) # cpi=17 # lpi=8 # landscape=1 # ;; *) lpcmd="" ;; esac if [[ $cpi -eq 17 ]] then lpcmd="$lpcmd -o cpi=17" fi if [[ $lpi -eq 8 ]] then lpcmd="$lpcmd -o lpi=8" fi if [[ $landscape -eq 1 ]] then lpcmd="$lpcmd -o landscape" fi gawk '{printf "%s\r\n",$0}' - | lp -d $PRINTNAME $lpcmd On Thu, Dec 22, 2011 at 3:21 PM, John Thompson wrote: > Yes, on AIX, if you are using System V printing, make sure you setup the > printer like so: > > Sorry for the ugly output... > > Add Remote Printer Configuration > > Type or select values in entry fields. > Press Enter AFTER making all desired changes. > > [Entry Fields] > * PRINTER name [Qtest] > * SERVER name[dns-name-or-ip] >+ > * PRINTER NAME on server [RAW] > COMMENT[] > CLASS name [] >+ > > -- Interface Program Options -- > > Printer TYPES [Other] > + > CONTENT TYPE [simple] >+ > > - Header/Trailer Page Options - > > Force BANNER? no > + > > > On Thu, Dec 22, 2011 at 3:14 PM, Dave Laansma > wrote: > >> If you're on AIX, there are some settings in smit that may be causing it >> too. >> >> Sincerely, >> David Laansma >> IT Manager >> Hubbard Supply Co. >> Direct: 810-342-7143 >> Office: 810-234-8681 >> Fax: 810-234-6142 >> www.hubbardsupply.com >> "Delivering Products, Services and Innovative Solutions" >> >> -Original Message- >> From: u2-users-boun...@listserver.u2ug.org >> [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson >> Sent: Thursday, December 22, 2011 3:14 PM >> To: U2 Users List >> Subject: Re: [U2] Line Printer Control >> >> If I remember correctly, when we converted from UltPlus to Universe... I >> had to set the following in our master login paragraph (I know, I know, >> probably not the best place for it) for a lot of legacy stuff. >> >> SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT >> >> Try that maybe? Shot in the dark. I do remember many hours pulling my >> hair out over this though. >> >> On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman >> wrote: >> >> > We still use a greenbar printer to print checks. >> > >> > Via a UniBasic program, I am trying to send an alignment pattern to >> > the printer before starting the check run. >> > >> > The trouble is that it always does a form feed after the alignment >> pattern. >> > >> > I have been diddling with toggling options in... >> > >> > execute 'SETPTR >> > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' >> > >> > PRINTER OFF >> > PRINTER CLOSE >> > >> > Help
Re: [U2] Line Printer Control
Yes, on AIX, if you are using System V printing, make sure you setup the printer like so: Sorry for the ugly output... Add Remote Printer Configuration Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * PRINTER name [Qtest] * SERVER name[dns-name-or-ip] + * PRINTER NAME on server [RAW] COMMENT[] CLASS name [] + -- Interface Program Options -- Printer TYPES [Other] + CONTENT TYPE [simple] + - Header/Trailer Page Options - Force BANNER? no + On Thu, Dec 22, 2011 at 3:14 PM, Dave Laansma wrote: > If you're on AIX, there are some settings in smit that may be causing it > too. > > Sincerely, > David Laansma > IT Manager > Hubbard Supply Co. > Direct: 810-342-7143 > Office: 810-234-8681 > Fax: 810-234-6142 > www.hubbardsupply.com > "Delivering Products, Services and Innovative Solutions" > > -Original Message- > From: u2-users-boun...@listserver.u2ug.org > [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson > Sent: Thursday, December 22, 2011 3:14 PM > To: U2 Users List > Subject: Re: [U2] Line Printer Control > > If I remember correctly, when we converted from UltPlus to Universe... I > had to set the following in our master login paragraph (I know, I know, > probably not the best place for it) for a lot of legacy stuff. > > SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT > > Try that maybe? Shot in the dark. I do remember many hours pulling my > hair out over this though. > > On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman > wrote: > > > We still use a greenbar printer to print checks. > > > > Via a UniBasic program, I am trying to send an alignment pattern to > > the printer before starting the check run. > > > > The trouble is that it always does a form feed after the alignment > pattern. > > > > I have been diddling with toggling options in... > > > > execute 'SETPTR > > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' > > > > PRINTER OFF > > PRINTER CLOSE > > > > Help would be appreciated. > > > > --Bill > > ___ > > U2-Users mailing list > > U2-Users@listserver.u2ug.org > > http://listserver.u2ug.org/mailman/listinfo/u2-users > > > > > > -- > John Thompson > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Line Printer Control
If you're on AIX, there are some settings in smit that may be causing it too. Sincerely, David Laansma IT Manager Hubbard Supply Co. Direct: 810-342-7143 Office: 810-234-8681 Fax: 810-234-6142 www.hubbardsupply.com "Delivering Products, Services and Innovative Solutions" -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of John Thompson Sent: Thursday, December 22, 2011 3:14 PM To: U2 Users List Subject: Re: [U2] Line Printer Control If I remember correctly, when we converted from UltPlus to Universe... I had to set the following in our master login paragraph (I know, I know, probably not the best place for it) for a lot of legacy stuff. SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT Try that maybe? Shot in the dark. I do remember many hours pulling my hair out over this though. On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman wrote: > We still use a greenbar printer to print checks. > > Via a UniBasic program, I am trying to send an alignment pattern to > the printer before starting the check run. > > The trouble is that it always does a form feed after the alignment pattern. > > I have been diddling with toggling options in... > > execute 'SETPTR > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' > > PRINTER OFF > PRINTER CLOSE > > Help would be appreciated. > > --Bill > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Line Printer Control
You also might try 66 lines. SETPTR ,132,66,0,0,,NOHEAD,BRIEF,NFMT On Thu, Dec 22, 2011 at 3:13 PM, John Thompson wrote: > If I remember correctly, when we converted from UltPlus to Universe... I > had to set the following in our master login paragraph (I know, I know, > probably not the best place for it) for a lot of legacy stuff. > > SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT > > Try that maybe? Shot in the dark. I do remember many hours pulling my > hair out over this though. > > > On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman wrote: > >> We still use a greenbar printer to print checks. >> >> Via a UniBasic program, I am trying to send an alignment pattern to the >> printer before starting the check run. >> >> The trouble is that it always does a form feed after the alignment >> pattern. >> >> I have been diddling with toggling options in... >> >> execute 'SETPTR >> 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' >> >> PRINTER OFF >> PRINTER CLOSE >> >> Help would be appreciated. >> >> --Bill >> ___ >> U2-Users mailing list >> U2-Users@listserver.u2ug.org >> http://listserver.u2ug.org/mailman/listinfo/u2-users >> > > > > -- > John Thompson > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] Line Printer Control
If I remember correctly, when we converted from UltPlus to Universe... I had to set the following in our master login paragraph (I know, I know, probably not the best place for it) for a lot of legacy stuff. SETPTR ,132,60,0,0,,NOHEAD,BRIEF,NFMT Try that maybe? Shot in the dark. I do remember many hours pulling my hair out over this though. On Thu, Dec 22, 2011 at 3:06 PM, Bill Brutzman wrote: > We still use a greenbar printer to print checks. > > Via a UniBasic program, I am trying to send an alignment pattern to the > printer before starting the check run. > > The trouble is that it always does a form feed after the alignment pattern. > > I have been diddling with toggling options in... > > execute 'SETPTR > 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' > > PRINTER OFF > PRINTER CLOSE > > Help would be appreciated. > > --Bill > ___ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- John Thompson ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
[U2] Line Printer Control
We still use a greenbar printer to print checks. Via a UniBasic program, I am trying to send an alignment pattern to the printer before starting the check run. The trouble is that it always does a form feed after the alignment pattern. I have been diddling with toggling options in... execute 'SETPTR 0,132,60,2,0,1,NHEAD,BRIEF,NFMT,NOEJECT,NODEFAULT,NOFORMFEED, AT PR0' PRINTER OFF PRINTER CLOSE Help would be appreciated. --Bill ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users