OPNQRY Questions and Answers

Recent IT Questions

1 - 9 of 9
<<PREVIOUS 1 NEXT>>

Odd problem (conversion or openquery?) only appearing in a stored procedure but not when running it adhoc

Here's the code I can run with no problems: declare @AnneeSelectionnee numeric select @AnneeSelectionnee = 2009 declare @DateDernierImport datetime select @DateDernierImport =  'Nov 14 2008 12:00AM' SELECT     LTRIM(RTRIM(T_ASFSTAG0.STANS1)),     LTRIM(RTRIM(T_ASFSTAG0.STHFO1)),...

Answer Question   |  Sep 18 2009  8:48 AM GMT
SQL 2000, Linked Server, OPNQRY
asked by LeftForDead

  20 pts.

AS400 - RRN of PF

FILE1 is a PF. I want to read 100th Record directly. I want to perform this operation without using LF, OPNQRY, Native I/O. want to achieve this using RRN value of File. How to code this in RPGLE Program

View Answer   |  Jan 20 2009  11:43 AM GMT
RPGLE, RPGLE Program, RRN
asked by Rajeshece

  440 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.

opnqry

I have four selection parameters in a screen which is used as selection criteria in my opnqry.Ideally if all parameters are given the qryslt in opnqry will have all four fields in the select criteria. Now i have a scenario where if any of the selection parameter is not given in the screen the...

View Answer   |  Dec 29 2008  12:19 AM GMT
OPNQRY
asked by Anderson123

  840 pts.

opnqry

I need to select a range of dates for a single parameter in opnqry. qryslt(’date *EQ ‘ *CAT &wrkDTE),where date is numeric and wrkDTE is char.here i have just selected 1 day i want data for range of dates Please suggest.

View Answer   |  Dec 29 2008  12:18 AM GMT
OPNQRY
asked by Anderson123

  840 pts.

opnqry

Am getting a runtime error when opnqry is executed.APGLDT field is numeric and & POST is *CHAR value retrieved from dtaara.Similar is the case with APINVDT.I tried without %DIGITS also and it still doesnt work. OPNQRYF FILE((*LIBL/APH *FIRST *ONLY)) + ...

View Answer   |  Dec 19 2008  4:38 PM GMT
OPNQRY, AS/400 error messages, AS/400 Runtime Errors
asked by Anderson123

  840 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 and WRKQRY

In wrkqry there is an option to save the selected records to an output file.Similarly is there a way to use OPNQRY in a CL or in an SQLRPG to directly move the selected records to another file?

View Answer   |  Dec 13 2008  1:11 PM GMT
CL, SQLRPG, OPNQRY
asked by Anderson123

  840 pts.

OPNQRY and ovrdbf

Hi, Can you please tel about OPNQRY and OVRDBF, why we are going to use them, Thanks &Regars, Raum

View Answer   |  Jun 30 2008  11:10 AM GMT
OVRDBF, OPNQRY
asked by VENKYAS400

  45 pts.

1 - 9 of 9
<<PREVIOUS 1 NEXT>>