+ Reply to Thread
Results 1 to 2 of 2

Thread: OPNQRYF Again!!

  1. #1
    Guest.Visitor Guest

    Default OPNQRYF Again!!

    I was wondering if there is a technique for doing mutiple functions with a single qryslt? What I need is a way of Converting a Physical file with a mixed Case description(30 Char). Then I need to do a wilcard scan on The %xlate function. Example: I am passing &DSDESC Value(Peach) In my file I have PEACH And Peach, and peach in my Physical file. I am doing my wilcard and it is working nicely, thanks to Mr. Holt After I pass Peach,I *tcat an * on the end of Peach value(Peach*) My problem is now I am only getting Peach etc. and not the PEACH etc. or peach etc. Is there a way of getting my select statement to xlate and wilcard scan from the same select statement? Thank you in advance. Jerry

  2. #2
    Guest.Visitor Guest

    Default OPNQRYF Again!!

    Jerry, Assuming that your search criterion is always uppercase your should do something like : QRYSLT('%XLATE(DBFIELD QSYSTRNTBL) *EQ %WLDCRD("' *TCAT &SEARCH *TCAT '")') If you're using a CLP program and want to translate your criterion from mixed case to upper case, you should consider calling a 'C' function like ToUpper that you can call just by turning your CLP into an CLLE. Friendly yours. Bruno. Bruno_Couleau@Seagram.com or Bruno.Couleau@Wanadoo.fr

+ Reply to Thread

Similar Threads

  1. OPNQRYF
    By K.Forsythe in forum RPG
    Replies: 4
    Last Post: 11-10-2004, 05:13 AM
  2. Will OPNQRYF help me?
    By Guest.Visitor in forum CL
    Replies: 1
    Last Post: 06-04-2004, 05:44 AM
  3. OPNQRYF and SQL
    By Guest.Visitor in forum Analysis
    Replies: 1
    Last Post: 02-10-2000, 02:39 AM
  4. New to OPNQRYF
    By Guest.Visitor in forum Analysis
    Replies: 1
    Last Post: 04-28-1999, 10:20 AM
  5. OPNQRYF
    By T.Holt in forum Analysis
    Replies: 1
    Last Post: 04-30-1998, 03:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts