That won't get me any closer.  Reason is that we have differing numbers
of options possible.  I really need to somehow identify where "PRN" (or
/PRN or PRN= or ...) is.  Once I have that, I can use FIELD on the
double quotes to get what I want.

Double slashes won't work, either, as FIELD still just takes the first
slash character and uses it.

Here's a sample of the data line I'm working with but, again, the number
of options and option commands can change.  Only "/PRN=" is going to be
guaranteed to be unique to that data position. (The sample may wrap but
it's a single line.)

001: %BTW% /RUN   /f="C:\BarTender\Template\Comply-FTL.btw"
/d="\\ganymede\DCDOWN\5214411.dat" /p /PRN="BoxLabel3" /x


Thanks,
BobW

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George Gallen
Sent: Thursday, May 19, 2011 11:46 AM
To: U2 Users List
Subject: Re: [U2] Multi char delimiter in DICT item

hmmm. looks like I need glasses...didn't see you already answered it.

Is there an = sign in any of the label data?

FIELD(@1,"=",2) ; FIELD(@2,'"'2)

Don't look for PRN= , just =

George

> -----Original Message-----
> From: [email protected] [mailto:u2-users-
> [email protected]] On Behalf Of George Gallen
> Sent: Thursday, May 19, 2011 2:30 PM
> To: U2 Users List
> Subject: Re: [U2] Multi char delimiter in DICT item
> 
> Does CHANGE work with Unidata?
> 
> CHANGE(F1,"PRN",CHAR(251)) ; FIELD(@1,CHAR(251),2) ; FIELD(@2,'"',2)
> 
> George
> 
> > -----Original Message-----
> > From: [email protected] [mailto:u2-users-
> > [email protected]] On Behalf Of Bob Woodward
> > Sent: Thursday, May 19, 2011 2:11 PM
> > To: U2 Users List
> > Subject: [U2] Multi char delimiter in DICT item
> >
> > Hi folks,
> >
> > I'm in Unidata 6.1 and I'm trying to find a way to use a multi
> > character
> > value as a delimiter for a parsing function in an I-desc dict item.
> > I'm
> > working with Bartender label data records and I'm trying to parse
the
> > first line on the "/PRN=" value, without the quote marks.  FIELD
only
> > lets me use a single character.
> >
> > What I have so far in the DICT item is:
> > 001: I
> > 002: F1;FIELD(@1,'PRN=',2);FIELD(@2,'"',2)
> > 003:
> > 004: PRN
> > 005: 15L
> > 006: S
> >
> > This works great until a capital P is in the label name before the
> PRN.
> > Field is taking the first character and ignoring the RN=.  I do NOT
> > want
> > to make a subroutine if I can avoid it.  I've tried using CHANGE to
> > swap
> > out PRN= with a single character but apparently that's not an
allowed
> > command in the DICT items.
> >
> > Thanks for any help you can offer.
> >
> > BobW
> >
> > _______________________________________________
> > U2-Users mailing list
> > [email protected]
> > http://listserver.u2ug.org/mailman/listinfo/u2-users
> _______________________________________________
> U2-Users mailing list
> [email protected]
> http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to