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
