AS/400 Query Questions and Answers

Recent IT Questions

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

AS/400 QUERY ; how can I calculate the month and year of 3 months ago in define result fields?

I am using an AS/400 query in which I need the month and year of 3 months ago based on today's date. To get today's date I use current(date) but I need to know the month/year 3 month ago and the month/year of previous month undepending which day of the current month it is. Is that possible? I...

View Answer   |  Oct 5 2009  11:15 AM GMT
AS/400 Query, V5R3, V5R3M0
asked by Chrisjegoderie

  15 pts.

AS400 query print landscape/legal?

How do you get Query to print in landscape on legal sized paper? I tried adjusting the paper size but that didn't seem to help. Software/Hardware used: AS400

View Answer   |  Sep 24 2009  4:35 PM GMT
AS/400, AS/400 Query, AS/400 printing
asked by Lilarose

  70 pts.

What is the proper syntax for using the RANGE test in select records?

I am trying to test for a date range in my query. I dont know what the proper syntax is for testing range. Any ideas? Thanks

View Answer   |  Jul 2 2009  3:11 PM GMT
AS/400 Query
asked by Bmatts14

  10 pts.

test value of list in AS/400

What is the definition of the test value list?

View Answer   |  Jun 29 2009  7:35 PM GMT
AS/400 Query, AS/400 Records
asked by Qwerty54

  5 pts.

AS400 QUERY-Beginning of year date

How can I create a date field with the 1st day of the current year ie: 01/01/2009 using WRKQRY. Thanks!

View Answer   |  Apr 6 2009  5:57 PM GMT
AS/400, WRKQRY, AS/400 Query
asked by TB2G

  35 pts.

How to see records in ALL Files to an OutFile

I have a programmer that wants to see all Files in a specific library that have 0 records. I know I can do a dspfd on all files in a specific library but I can't display it to an outfile. I wanted to run a query over the outfile. Can someone offer any suggestions on which command or program I could...

View Answer   |  Apr 6 2009  4:41 PM GMT
AS/400 Query, AS/400 output files
asked by Alison883

  75 pts.

AS/400 Query - Current date -1

Is there a quick and easy way to calculate yesterdays date by using "Define result fields"

View Answer   |  Apr 1 2009  8:35 AM GMT
AS/400 Query, AS/400 queries, AS/400 date format
asked by Soren

  5 pts.

print 1st 20 records of the file

I need to dump the 1st record of a file using runqry is this possible

View Answer   |  Mar 30 2009  5:59 PM GMT
AS/400 Query, RUNQRY, AS/400 printing
asked by Crasherrider

  25 pts.

subtotal and average

Can anyone tell me how/if I could using query400 take a list of records, subtotal and create a file with only the subtotals for export to excel? My file is all orders, with line items and $$ for each line. I need to subtotal the orders by order # and create a file listing only the customer #,...

View Answer   |  Mar 12 2009  3:48 PM GMT
Query/400, AS/400 Query
asked by Amaries

  45 pts.

AS400 Query Security

How can I secure an AS400 query allowing only two individuals the ability to change or delete the query?

View Answer   |  Mar 3 2009  3:01 PM GMT
AS/400 security, AS/400 Query, AS/400 Permissions
asked by Clhalfa

  30 pts.

Qry Mgmt losing edit word specs

My 400 query has edit words specified for proper printing of the dates in my report, but I am passing parameters to select the correct data using STRQMQRY. My output is ignoring the edit words specified in the query

View Answer   |  Feb 27 2009  9:46 PM GMT
AS/400 Query, STRQMQRY
asked by SmKny

  5 pts.

AS/400 All Object Authority

I'm trying to get a list of all users who have the all object authority. Does anybody know of a good way to do that? I could create an IQ Query, but is there something faster?

View Answer   |  Feb 17 2009  8:31 PM GMT
AS/400, All Object Authority, AS/400 Query
asked by Mshen

  23875 pts.

AS/400 Query - How to combine 2 fields but delete the null space?

fields a: School , in the fileld a there are 3 null space after school, field b: I choose , now I want to combine filed a and field b by using "||" as a new field, how to delete the null space

View Answer   |  Feb 6 2009  3:50 AM GMT
AS/400 Query, AS/400 queries, AS/400 administration
asked by Milahuang99

  5 pts.

AS400

how do you make a query of all the listed printers and display terminals in the system with the following columns: Device Type, Device Name, Description, Status, Last Used.

View Answer   |  Jan 21 2009  5:03 PM GMT
AS/400 Query, AS/400 printing, Printers
asked by Eldridge1020

  5 pts.

How do I modify the value returned from current(time)

I have an AS/400 query that requires me to search records with a timestamp from 20 mins prior to the current system time. If I use the current(time) value in the query, how do I modify it to return a time 20 minutes earlier?

View Answer   |  Jan 21 2009  10:41 AM GMT
AS/400 Query, AS/400 TimeStamp
asked by Morticia001

  10 pts.

AS400 Profile Change Query

Hey guys, can anyone provide me with information to query and produce a report that shows the date and time when a user profile was changed.

View Answer   |  Jan 14 2009  6:43 PM GMT
AS/400 Query, AS/400 Profile Change
asked by Johnb20

  15 pts.

AS400 Query

Hello, How can you add a WEEK e,g, . *Monday thru Friday in the DEFINE RESULT FIELDS ?

View Answer   |  Jan 14 2009  6:38 PM GMT
AS/400 Query
asked by Querys

  100 pts.

AS/400 Query

How can I Define a query to run only Monday thru Friday not using WRKJOBSCDE (we have a customised WRKQRY) scheduler and doesn't have an option to input the schedule day e.g. *Mon *Tues =, etc....I'll like to see if any one knows how to Define the query using the DEFINE RESULTS FIELDS e.g....

View Answer   |  Jan 13 2009  10:57 PM GMT
AS/400 job scheduler, AS/400 Query, WRKQRY
asked by Querys

  100 pts.

How to get a Lastname from a field that contains the Full Name? (RPG-ILE)

Hi Guys, I need your suggestions.... I have to extract data from our AS400 box and convert it into text file. For a client's name we have 3 particular fields. 1. FirstName, 2. LastName and 3. FullName. The problem is there are records where First Name and LastName fields are empty. Thats why I...

View Answer   |  Jan 13 2009  6:55 AM GMT
RPG ILE, RPG/400, AS/400 development
asked by Niel

  5 pts.

How do I disable the query timeout property?

I'm calling a stored procedure on the AS/400 from Visual Basic .Net. When the stored procedure executes, I get the SQL0666 message (query exceeds specified time limit or storage limit). The query timeout property on the box is set to *NOMAX and I've Reorg'd the files too. The message appears to...

View Answer   |  Jan 12 2009  3:33 PM GMT
AS/400 Client Access, AS/400 performance, AS/400 Query
asked by JasonWV

  5 pts.

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