Absolutely, but I just left out some of the details figuring they were
obvious!
John Zoltak
North American Mfg Co
> -----Original Message-----
> From: Leonard Berkowitz [SMTP:[log in to unmask]]
> Sent: Friday, September 11, 1998 1:11 PM
> To: John Zoltak
> Subject: Re: [HP3000-L] Query Variable use in search and replace
>
> John's technique is a good one, but won't you need a covering file
> equation to route QSLIST to a disk file?
>
>
> ========================
> Leonard S. Berkowitz
> mailto:[log in to unmask]
> phone: (617) 972-9400 ext. 3250
> fax: (617) 923-5555
>
>
>
>
>
>
>
>
> John Zoltak <[log in to unmask]> on 09/11/98 12:59:01 PM
>
> Please respond to John Zoltak <[log in to unmask]>
>
> To: [log in to unmask]
> cc: (bcc: Leonard Berkowitz/THP)
> Subject: Re: [HP3000-L] Query Variable use in search and replace
>
>
>
>
> Mark,
>
> A technique that I use in QUERY (when I'm not in the mood to write yet
> another program for something that's supposed to be a one-time thing)
> is
> to report the values to a file in such a way that the file can be
> XEQ'd
> from Query to replace the values after using QUAD to replace the "UFD"
> with "uF". For example
>
> OUT=LP
> R
> D1,"F KEY=",6; D1,KEY-ITEM,12 (assuming key is 6 chars long)
> D2,"REPL,DATA-ITEM=""",16; D2,DATA-ITEM,26; (assuming data-item is 10
> chars) D2,"""";END",31
> NOPAGE;END
> OUT=TERM
>
> use quad or whatever to change the values then
>
> XEQ TheFile
>
> Note also that this only works when you can uniquely identify the
> target
> record. Anyway, you get the idea. I've done many variations on this.
>
> Hope this helps
> John Zoltak
> North American Mfg Co
>
>
> > -----Original Message-----
> > From: Mark Gross [SMTP:[log in to unmask]]
> > Sent: Friday, September 11, 1998 10:38 AM
> > To: [log in to unmask]
> > Subject: [HP3000-L] Query Variable use in search and replace
> >
> > maybe I'm using the wrong tool here, but has anyone found a way
> using
> > Query
> > to replace a image field value
> > that requires use of a variable? The following example shows what I
> > want to
> > do.
> >
> > 1. find all occurrences of the substring "UFD" in the 60 character
> > field
> > EXTDESC
> > 2. change "UFD" to "uF"
> >
> >
> >
> > Mark Gross
> > Emerson Motion Control
> > [log in to unmask]
>
>
>
>
>
|