× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



In a Query/400 QRYDFN you need to have a variable starting with a colon (:INPUT)

Using Query Manager you need to use an ampersand and capitals (&INPUT)

If it is a character string, the value should be in double quotes. (''1160101")

That is all I can remember, no machine at hand.

Regards,
Carel Teijgeler

Op 30-6-2016 om 16:19 schreef Steinmetz, Paul:
I have an AS/400 query with a hardcoded date.
The date is today's date - 6 months.
Example 1160130.

I'd like to make this date a variable.

Can this be done within the query?
Or
Must it be done outside the query and pass the date as a variable to the query?
Then, instead of calling RUNQRY, I would need to STRQMQRY.

Any thoughts from the group?

Thank You
_____
Paul Steinmetz
IBM i Systems Administrator

Pencor Services, Inc.
462 Delaware Ave
Palmerton Pa 18071

610-826-9117 work
610-826-9188 fax
610-349-0913 cell
610-377-6012 home

psteinmetz@xxxxxxxxxx
http://www.pencor.com/



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.