+ Reply to Thread
Results 1 to 2 of 2

Thread: New to OPNQRYF

  1. #1
    Guest.Visitor Guest

    Default New to OPNQRYF

    We are new to OPNQRYF and I have a question. We have a join logical file which joins a header file of approximately 300,000 records and a detail file of about 500,000 records. We have a simple OPNQRYF on the join logical file with a selection of a date range. It ran well over an hour before we ended it. Is this a normal amount of time for files this size? Are we doing something wrong? We just upgraded from 4.1 to 4.3 on a 620. Here is the code. CHGVAR VAR(&QRYSLT) VALUE('SHIDTE = + %RANGE(' *CAT &ABEG *CAT ' ' *CAT &AEND *CAT ')'). OPNQRYF FILE((FFDWSCD/JSLSLYL1)) QRYSLT(&QRYSLT) + KEYFLD((SHSLSM) (SHBILT) (SHINV#)).

  2. #2
    Guest.Visitor Guest

    Default New to OPNQRYF

    Ok, I think we found our problem. In the join file the detail was the primary file. We tried the header as the primary file and the time came down to a few minutes.

+ 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. OPNQRYF Again!!
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 08-03-1999, 02:12 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