Re: Looking at query record selection criteria from RPG/CL
- From: "Jason Hubbard" <hubbardjason@xxxxxxxxxxx>
- Date: Tue, 23 Aug 2005 11:54:27 +0100
I got as far as the RTVQMQRY bit but have not created a program to rebuild
the queries. The resulting source code is easy to read though and i was able
to manually zip through and determine which queries were affected by the
account number renames. Mind dullingly boring though....
Thanks to those that replied.
"No Name" <NoName@xxxxxxxxxxx> wrote in message
news:010Ne.12031$0E5.2725@xxxxxxxxxxx
> Jaosn Hubbard wrote:
>> I have to change some queries that have certain account numbers in them -
>> problem is there are hundreds of queries and i don't know which to change
>> without manually editing each one.
>>
>> I could print the query definitions, consoildate them all into one PF and
>> read through that, but i figure there must be a slicker way??
>>
>> Is there any way i can scan through the record selection criteria for
>> each query in RPG or CL? Are there any API's for this purpose?
>>
>> regards
>> Jason
> I've never tried this but, retrieve the query source, modify and recreate:
>
> RTVQMQRY QMQRY(Lib/QryName)
> SRCFILE(*Libl/QCLSRC)
> ALWQRYDFN(*YES)
>
> Write a program to modify the retrieved source and recreate the query.
>
> Good Luck
.
- References:
- Looking at query record selection criteria from RPG/CL
- From: Jaosn Hubbard
- Re: Looking at query record selection criteria from RPG/CL
- From: No Name
- Looking at query record selection criteria from RPG/CL
- Prev by Date: Re: Auto-Refreshing Displays
- Next by Date: How to stop PM/400
- Previous by thread: Re: Looking at query record selection criteria from RPG/CL
- Next by thread: Re: Looking at query record selection criteria from RPG/CL
- Index(es):
Relevant Pages
|