...234567
  • 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 + *EQ "&SATDYYMD"') /*the variable contains the date*/...

    Secskc25 pointsBadges:
  • User Profile Info.

    Hi, I want to write a query that will only pull the following info.: UserID, OutQ, Printer Device. What Library would house this information? Thanks in advance!!

    Rmason335 pointsBadges:
  • Finding newly created objects

    I am trying to define a query to find any newly created objects ona daily basis. I have scheduled a job to run daily that creates a file to display all DSPOBJD which outputs into a physical file. I now want to query this file to find anything created on the previous day (the job runs overnight)....

    Gross140 pointsBadges:
  • 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) TYPE(*CHAR)...

    Geojf385 pointsBadges:
  • IF statement in AS/400 query

    Can I use an if-type statement to return a different value? For example, i thought i would use define results fields to say if(lnt03=34,"advance","payoff") liek I would in excel. of course this doesn't work...

    KPSTL5 pointsBadges:
  • what is syntax to convert minutes to days in an as/400 query?

    I have a field in an as/400 query that shows minutes and I don't know how to define a result to convert it to days.

    Whois5 pointsBadges:
  • Nested Selects

    A project I am working on requires that I do some stuff on a iSeries/AS400 DB (which I'm accessing through a linked server on a remote machine). I'm trying to build a query, but some of the AS400 syntax is giving me problems, and I was hoping that someone would be able to help me with this. the...

    Andyd2735 pointsBadges:
  • 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...

    22190165 pointsBadges:
  • New AS400 Query user, some knowledge

    How do I find the library and file name to pull info from?

    Yonext20005 pointsBadges:
  • 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.

    ActionMike5 pointsBadges:
  • Profiles not signed on in 180 days

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

    0 pointsBadges:
  • 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)?

    Davidfromnetherlands15 pointsBadges:
  • 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, 4, 2) || SUBSTR(CD, 7, 2) Then use CURDAT in your selection...

    Gerrib150 pointsBadges:
  • 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 :...

    DLM2007280 pointsBadges:
  • 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!

    Vsevilod135 pointsBadges:
  • 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 AS400...

    Karen1235 pointsBadges:
...234567

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following