I have installed UV PE 10.2.7 on RHEL 5.1 Desktop and want to send PCL ESC
sequences to a printer to configure the printer before I send print jobs to
that printer.
The HP LaserJet printer driver will not pass ESC sequences thru to the printer
(as it won't on Windows).
1.I created a raw
The printer is not including a carriage return at the end on the line. Set
up a Linux script like the following:
#!/bin/bash
#
# Include a carriage return at the end of a line of text before printing.
#
Cat - | sed 's/$/^013/' | lp -d printername -o nobanner
The ^013 is the carriage return
Clif / Tom:
Thanks. Following Tom's comment, I made a backup copy of catdir first.
Let's call it a victory.
--Bill
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Clifton Oliver
Sent: Thursday, May 15, 2008 5:55 PM
To: u2-users@listserver.u2ug.org
I know I've done this before several times in fact but for some reason,
today I just can't get my dict item to work correctly.
Field 1 is multivalued with 10 digit ids, I want to extract only the
first 4 digits of those ids, then read another field with each of those
extracted ids. My dict
Hi Brenda
The substring extraction does not vector in an I Descriptor.
One way around it is to use OCONVS()
OCONVS(@RECORD1,T1,4)
Brian
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brenda Price
Sent: 19 May 2008 21:24
To:
Q1: Is this an I-Descriptor?
Q2: What syntax was attempted so far?
--Bill
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brenda Price
Sent: Monday, May 19, 2008 4:24 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] multi-valued extraction
I know I've
I think you want SUBSTRINGS?
Katie
Katie Morgan
Datatel Programmer/Analyst
Linfield College
Integrated Technology Services
900 SE Baker St
McMinnville, OR 97128-6894
[EMAIL PROTECTED]
503.883.2714
-Original Message-
From: [EMAIL PROTECTED] [mailto:owner-u2-
[EMAIL PROTECTED] On
The [1,4] syntax doesn't know how to handle multi-values correctly.
Here's one way to do it:
SUBSTRINGS(@RECORD1,1,4)
This is one of the standard functions that deal with multi-valued
fields
HTH,
Jeff Fitzgerald
Fitzgerald Long, Inc.
-Original Message-
From: [EMAIL PROTECTED]
In a Pick-style dictionary, a correlative like this should work:
T1,4^253TOTHER.FILE;X;;99
or:
A1(T1,4)(TOTHER.FILE;X;;99)
or:
F;1;(T1,4);(TOTHER.FILE;X;;99)
or as an I-descriptor expression:
TRANS(OTHER.FILE,SUBSTRINGS(F1,1,4),99,'X')
Best Regards,
Richard Lewis
IBM Certified Solutions
Works great and if I'd put the 1,4 in the right place it would have
worked earlier. Don't you just hate those days when you're doing
something wrong and you know it but just can't think what it is.
Especially when you've been doing this for 15 years, its downright
embarrassing.
-Original
Make sure that all of the dictionary items are set up as M-type
(multi-valued).
Karen Bessel
Software Developer
Tyler Technologies, Inc.
6500 International Parkway, Suite 2000
Plano, TX 75093
Phone: 972.713.3770 ext:6227
Fax: 972.713.3777
Email: [EMAIL PROTECTED]
Web:
Yes, it was an I descriptor and it was setup as multivalued. Both the
SUBSTRING worked and the OCONVS(@RECORD1,T1.4).
Everything I tried would have worked if I'd had the 1,4 in the right
position or had used the SUBSTRING. Like I said, it was a Duh Day!
-Original Message-
From:
Brenda:
One way to pick off only the first four characters in each value is to
use !FMTS, one of the dynamic-array handling subroutines. You create an
I-type like so in the DICT of first file:
0001: I
0002: SUBR(!FMTS,ONE,4L)
0003:
0004: PICK4
0005: 10L
0006: M
If we now type the command
Please have a look at my blog entry:
remove.pleaseNebula-RnD.com/blog/tech/mv/2007/01/dict-items01.htm
l
I explained there how Pick dict items work, where conversions and
correlatives are processed in a very specific order. I'm not
familiar enough with the nuances of the Prime influences on U2,
14 matches
Mail list logo