× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Peter
  We are using the *CT as below.  It is the single and double quotes we are
having problems with.  We are scanning for text with and embedded double
quote (like for 5",  for 5 inches).   When we use the " in the search
string, the qryslt parameter thinks it is the end of the parm.    We have
tried all sorts of combinations of single and double quotes before and after
the text string with no luck.

In the parm below, right after the *CT, is that three double quotes?

> -----Original Message-----
> From: Peter_Vidal@pall.com [SMTP:Peter_Vidal@pall.com]
> Sent: Tuesday, September 10, 2002 2:34 PM
> To:   rpg400-l@midrange.com
> Subject:      RE: OPNQRYF question
>
>
> Hi Nelson!  Haven't contacted you in a while!  Hope you're OK as well as
> the
> LINCARE family.
>
> I tried this little test program.  In it, there is a parameter called *CT
> which
> you can use in the OPNQRYF for 'contains' or character scan:
>
> START:      PGM
>
>             DCL        VAR(&QRYSLT) TYPE(*CHAR) LEN(100)
>             MONMSG     MSGID(CPF0000)
>
>             DLTF       FILE(PETERVI/TESTFILE2)
>
>             CHGVAR     VAR(&QRYSLT) VALUE('(TESTFILE *CT ''"'')')
>             OPNQRYF    FILE((TESTFILE)) QRYSLT(&QRYSLT)
>             CPYFRMQRYF FROMOPNID(TESTFILE) +
>                          TOFILE(PETERVI/TESTFILE2) CRTFILE(*YES)
>
> END:        ENDPGM
>
> It worked for me.  Good luck!
>
> Peter Vidal
> Pall Aeropower Corp. / SR Programmer Analyst
> : www.pall.com  / + Peter_Vidal@Pall.com
> (727-539-8448, x2414
>
>
>
>
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
> or email: RPG400-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.



************************************************************************************************************************************************************************************************************
This message originates from Lincare Holdings Inc. It contains information 
which maybe confidential or privileged and is intended only for the individual 
or entity named above.
It is prohibited for anyone else to disclose, copy, distribute or use the 
contents of this message.
All personal messages express views solely of the sender, which are not to be 
attributed to Lincare Holdings Inc., and may not be copied or distributed 
without this disclaimer.
If you received this message in error, please notify us immediately at 
MailAdmin@lincare.com or (800) 284-2006.
************************************************************************************************************************************************************************************************************



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.