AS/400 Query Questions and Answers

Recent IT Questions

41 - 59 of 59
<<PREVIOUS 1|2|3 NEXT>>

Identifying output files in query definitions

How can one identify all/only output files in a list of query definitions (the list has over 1000 queries in it)? Executing in batch RUNQRY with parameter PRTDFN(*YES), in a loop for each query, then scanning the collective result, might theoretically do the job but doesn't work for queries in...

View Answer   |  Aug 25 2008  4:06 AM GMT
AS/400 Query, Batch files, AS/400 output files
asked by 221901

  65 pts.

Editing invalid calculations into zeros

How do I change a invalid calculated value (due to some zero quantities) into a value of ZERO? I need to save this in a file for later pulling into a spreadsheet.

View Answer   |  Aug 7 2008  6:01 PM GMT
AS/400 Query
asked by ActionMike

  5 pts.

Query Xref to file

The other day I added a field to the DDS of a file. I recompiled all of the RPG programs and display files that use the physical file. But I got burned when I found that I neglected to include all of the queries that used the file. Is there a way to query all of the query definitions to find if my...

View Answer   |  Jul 31 2008  5:56 PM GMT
RPG, DDS, AS/400 Query
asked by Abbey

  120 pts.

Profiles not signed on in 180 days

How do I get a query to show me AS400 profiles not signed on in 180 days?

View Answer   |  Jul 29 2008  7:34 PM GMT
AS/400 Query, AS/400 user profiles
asked by Wildmanab1

  20 pts.

Simple question about AS/400 query

Maybe for you that will be a stupid question, but I'm taking the first steps and I don't know what exactly I have to do in the "Specify how to join files" screen. If I put more joints in more rows it is how there was an "and" before every new row? I mean, all the rows are conditions that have to be...

View Answer   |  Jul 29 2008  9:18 AM GMT
JOIN statement, AS/400 Query
asked by Fabio

  5 pts.

AS 400 Query File Reference

How would you go about identifying file, field and output references of a group or *all AS400 queries? I need to be able to identify files where used in queries.

View Answer   |  Jul 17 2008  6:28 PM GMT
AS/400 Query
asked by Modiyooch

  370 pts.

Calculate date in future

How can I ad an day to the current systemdate ? So that I only see the records of tomorrow (for example)?

View Answer   |  Jun 23 2008  8:31 PM GMT
AS/400 Query, AS/400 command keys, AS/400 CURRENT
asked by Davidfromnetherlands

  15 pts.

Is there a quick way of running a query to select records based on" current sysdate - 1" i.e yesterday.

Is there a quick way of running a query to select records based on current sysdate - 1 ie yesterday. Using Martin Gilbert's suggestion I get the current date & it works perfectly CD CHAR(CURRENT(DATE)) CURDAT SUBSTR(CD, 1, 2) || SUBSTR(CD,...

View Answer   |  Jun 23 2008  2:27 PM GMT
Query, AS/400 Query
asked by Gerrib

  145 pts.

as400 Query : Current Date

Is there a quick way of running a query to select records based on current sysdate. I know you can get current date using Current command but I cant use it in selection.

View Answer   |  Jun 16 2008  3:42 PM GMT
AS/400 Query, AS/400 command keys, AS/400 CURRENT
asked by Gerrib

  145 pts.

Using LIKE in AS/400 Cobol

How to use 'LIKE' in Cobol similar to query/400(example Field_A LIKE '%777%')

View Answer   |  Jun 9 2008  3:20 PM GMT
AS/400, COBOL, AS/400 Query
asked by 11171955

  5 pts.

Rounding

how do l round up or round down values in a query/AS400?

View Answer   |  Jun 7 2008  6:34 PM GMT
AS/400, AS/400 Query
asked by Tonchin

  5 pts.

RPG %SCAN Question

I am unable to get all the scanned records for a string in a file. For example, my file itemmast has 1000 records in it. When I use Query 400 and search for 'cable' I get 50 records with the word cable in various positions of a 30 character field. When I use the statement "x = %scan (xcust_pn :...

View Answer   |  Jun 5 2008  4:18 PM GMT
RPG, RPG IV, AS/400 Query
asked by DLM2007

  110 pts.

Find # days between 2 dates in Query 400

I have never used this function but it looks like the startdate and enddate must be alpha expressions for this to work. Is that correct?

View Answer   |  May 28 2008  3:50 PM GMT
AS/400 Query, iSeries development
asked by Abbey

  120 pts.

Find # days between 2 dates in Query 400

How do I find the # of days between 2 dates. I'm trying to do this in AS/400 Query 400. I'm looking to do this in the Results area where you do calculations. Can anyone help??? Thanks!!!!!

View Answer   |  May 24 2008  4:06 PM GMT
AS/400 Query
asked by Pherrick

  20 pts.

Number of days between 2 dates

How do I find the number of days between 2 dates? Julian or MM/DD/YY?

View Answer   |  May 22 2008  9:39 PM GMT
AS/400 Query
asked by Pherrick

  20 pts.

converting character to numeric in query/400

Hello, Is there a way of converting character to numeric data in WRKQRY? I've read Query/400 manuals and found no simple way of data conversion. Thanks in advance!

View Answer   |  Mar 11 2008  3:45 AM GMT
AS/400 Query
asked by Vsevilod

  10 pts.

Passing parms to Query400

Has anyone ever come across a method of passing a parm into a query run - such as a date?

View Answer   |  Feb 25 2008  7:49 PM GMT
AS/400, iSeries, AS/400 Query
asked by Abbey

  120 pts.

changing qpquprfil in query

how do i change the qpquprfil in as/400 query. i have doone it before and i know it is doabe but ican't rember how. i mean thesystem one not the one at the user level??

View Answer   |  Jan 10 2008  7:10 PM GMT
AS/400 Query, QPQUPRFIL
asked by Zonar

  5 pts.

Query Question

okay, first let me apologize for my general lack of knowledge about my computer system. We don't have anyone in house that can help so I turn to this site for hopefully an answer. I am not sure I can even communicate effectivey my question but here goes: I am trying to write a query with our...

View Answer   |  Dec 18 2007  4:38 PM GMT
AS/400, AS/400 Query
asked by Karen123

  5 pts.

41 - 59 of 59
<<PREVIOUS 1|2|3 NEXT>>