OPNQRYF Questions and Answers

Recent IT Questions

1 - 19 of 19
<<PREVIOUS 1 NEXT>>

logical file

what is the difference between OPNQRYF and LF

View Answer   |  Oct 9 2009  11:47 AM GMT
Logical Files, OPNQRYF, lf
asked by Hemavijay

  80 pts.

OPNQRYF AS/400 (RPGILE)

Dear all, i am done one program in this program one data base file which are Master file and it's use all day and lot of records are there, my program make the report it taking too much time, i am want to use OPNQRYF but it s not posible in master file because it's use some time any other option...

View Answer   |  Oct 9 2009  6:45 AM GMT
RPGILE, OPNQRYF
asked by Nelson012

  20 pts.

How to track OPNQRYF performance

Hi all, Recently i have done OPNQRYF on one transaction file which has around millions of records Program is taking same time to process as doing without OPNQRF. then what is the use of doing OPNQRYF. how can i track howmuch time OPNQRY has consumed. Regards, Mohan K

View Answer   |  Jul 24 2009  10:57 AM GMT
AS/400, OPNQRYF
asked by Mohan K

  465 pts.

how to create new result field by concatinating two or more fields in OPNQRY.

Hi All, i want to create a new result field by concatinating two or more fields in OPNQRY for comparision. In detail: I have one tranaction file having millions on records however i want only records which were trasacted in last twodays. I have 3 seperate fields in trans file as TRYEAR, TRMONTH,...

View Answer   |  Jul 22 2009  11:41 AM GMT
AS/400, CLLE, OPNQRYF
asked by Mohan K

  465 pts.

OPNQRYF

Is it possible to access a file created by opnqryf in an RPG/400 program using keys? I have defined the KEYFLD parameter but the RPG doesn't find the records when using READE or CHAIN

View Answer   |  May 14 2009  3:37 PM GMT
OPNQRYF, RPG/400, KEYFLD
asked by Marg

  5 pts.

OPNQRYF

DCLF FILE(LIBRARY/DISPLAY) START: SNDRCVF RCDFMT(REC) WAIT(*YES) IF COND(&IN03 *EQ '1') THEN(DO) GOTO CMDLBL(END) ENDDO IF COND(&ENQQUA1 *EQ ' ') THEN(DO) GOTO CMDLBL(START) ENDDO IF COND(&ENQQUA1 *NE *BLANKS) THEN(DO) OPNQRYF FILE((SARKNS/ENQP002)) OPTION(*ALL) + QRYSLT('&ENQQUA *EQ ''' *CAT...

View Answer   |  Mar 19 2009  6:37 AM GMT
CL, OPNQRYF, Open Query File
asked by Khadar

  90 pts.

OPNQRYF

PGM DCLF FILE(LIBRARY/DISPLAY) START: SNDRCVF RCDFMT(REC) WAIT(*YES) IF...

View Answer   |  Mar 18 2009  2:14 PM GMT
CL/400, OPNQRYF, CL/OPNQRYF
asked by Khadar

  90 pts.

OPNQRYF

I have 4-fileds on Display File like frdiv(zoned),todiv(zoned),frpr(char),topr(char) all the fields are of size 2 only. I am using a "OPNQRYF" to filter the records froma Physical file (pfdiv), it containes 1,25,000 records . Through this openqryf all the selected records I will copy to a file...

View Answer   |  Feb 1 2009  2:21 PM GMT
CL/400, OPNQRYF, Open Query File
asked by Khadar

  90 pts.

CL400/OPNQRY

I HAVE A CASE LIKE THIS IN CL/400OPNQRYF FILE((MADE07/GLM0120)) QRYSLT('(GLFINP *NE 99) *AND (GLPRDC *EQ "AR" *OR GLPRDC *EQ"SW" *OR GLPRDC *EQ "WP" *OR GLPRDC *EQ "LR" *OR GLPRDC *EQ "MD") *and (glbrnc *eq "%substr(&bc 1 1)")') HERE BC IS A FIELD IN DISPLAY FILE I NEED TO filter data according to...

View Answer   |  Dec 31 2008  12:07 AM GMT
OPNQRY, CL/400, OPNQRYF
asked by Zilan

  85 pts.

OPNQRYF

I HAVE A CASE LIKE THIS IN CL/400 OPNQRYF FILE((MADE07/GLM0120)) QRYSLT('(GLFINP *NE 99) *AND (GLPRDC *EQ "AR" *OR GLPRDC *EQ "SW" *OR GLPRDC *EQ "WP" *OR GLPRDC *EQ "LR" *OR GLPRDC *EQ "MD") *and (glbrnc *eq "%substr(&bc 1 1)")') HERE BC IS A FIELD IN DISPLAY FILE I...

View Answer   |  Dec 31 2008  11:54 AM GMT
CL/400, OPNQRYF
asked by Zilan

  85 pts.

opnqry

Hi I have a problem with the syntax of OPNQRY command I am getting values from a display file using RCVF and then using the qryslt parameter in OPNQRY to select a few records;See the command below OPNQRYF FILE((*LIBL/APH *FIRST *ONLY)) + QRYSLT('APCMPY *EQ ''*CAT XPCMP...

View Answer   |  Dec 15 2008  2:59 PM GMT
OPNQRYF, QRYSLT, RCVF
asked by Anderson123

  840 pts.

OPNQRY

Hi ALL, I am trying to pass to variable to the query select. ----------------------------------------------------------------------------------------------- OVRDBF FILE(filename) SHARE(*YES) OPNQRYF FILE((library/filename) QRYSLT('DATE + ...

View Answer   |  Nov 26 2008  9:03 AM GMT
OPNQRYF, AS/400 Query, RUNQRY
asked by Secskc

  15 pts.

Can anybody give me an example for OPNQRYF and call program?

Can anybody give me an example for OPNQRYF and call program with detail? ( i.e. how a call program is retrieving the data to the OPNQRYF program) Moderator note: This is a reader submitted question to our inbox.

View Answer   |  Nov 3 2008  7:43 PM GMT
OPNQRYF, Open Query File, AS/400 administration
asked by BrentSheets

  6535 pts.

Getting wildcard results from OPNQRYF

Hi all, I am trying to query a PF to get back all records where fields OWNER1 and OWNER2 have an entered user value (ie; JOHN - I would want to return JOHN, JOHNATHON, JOHNS, ARJOHNS, etc) The best so far I have been able to come up with is: DCL VAR(&CF03) TYPE(*CHAR) DCL VAR(&INOWN)...

View Answer   |  Oct 23 2008  2:07 PM GMT
iSeries, OPNQRYF, QRYSLT
asked by Geojf3

  10 pts.

CL - OPNQRYF

How to compare CL character field (year#) with packed decimal field(QRPS)of 3P0 length from file QRBT as equal. Please provide OPNQRYF statement for the same.

View Answer   |  Aug 1 2008  7:58 AM GMT
OPNQRYF, CL
asked by Minuvinu

  35 pts.

CL/400 - I want to know about QRYSLT(Please see below explanation)

Hi, I am not well versed with code in CL/400, i know the concepts. I want to know what is he doing in the below code. e.g usibng the symbols '|>' and '||' and '<|' IF COND(&TODUE7 *NE '0000000') THEN(DO) CHGVAR VAR(&QRYSL) VALUE(&QRYSL |> ' *AND (ODUDT *GE + ...

View Answer   |  Jun 5 2008  3:45 PM GMT
OPNQRYF, QRYSLT, CL
asked by Svankipu

  50 pts.

RCVF In CL

I am using nested RCVF to read PF's in a CL program. The second iteration of the inner loop does not happen because the pointer is set to end of file. How do I reset the pointer to start at the begining? I have tried OVRDBF, OPNQRYF, POSDBF and deleting and recreating the PF. Thank you for your...

View Answer   |  Feb 20 2008  3:23 PM GMT
CLP, OPNQRYF, RCVF
asked by Ashnirody

  100 pts.

Activation Groups and Open Query File use

I am executing a CLLE program that uses an OPNQRYF to select records from file "FILE1" which is a physical file containing in excess of 1 million records. I only need records with a specific date (about 5000 records) The file is opened for share = *yes and the program calls an RPGLE program that...

View Answer   |  Oct 24 2007  3:57 PM GMT
CLLE, OPNQRYF, Activation Groups
asked by Wmfsr

  20 pts.

Using %NOT in OPNQRYF

I know that %NOT is a function available for using in the qryslt parameter of opnqryf but I can't figure out how to code it. I would like to eliminate all records with a range in the middle of the possible range, for example, select all facilities except those is the range of 600 - 699. Is this...

View Answer   |  Oct 23 2007  5:30 PM GMT
OPNQRYF, %NOT, QRYSLT
asked by CLKelly

  65 pts.

1 - 19 of 19
<<PREVIOUS 1 NEXT>>