If I understand what Srinivas "really" wants to do is this:
He wants the RPG program to "build" the query on the fly and retain the
query that has been created by the program.
Srinivas, is this what you are attempting to do?
If so, I do not think that is possible.
Vice President - Information Services
Southland National Insurance Corporation
1812 University Blvd
205 345 7410
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Sent: Tuesday, March 04, 2008 2:20 PM
Subject: Re: Error while calling QCMDEXC API
Srinivas Boggula wrote:
when I am trying to run wrkqry from the program it takes me to wrkqry
screen there I am entering file name and library I don't want this to
done . Instead this process I want to do by a program.
I would advise you to listen to the people recommending RUNQRY. However
if you are bent on writing a program that will emulate a person at the
keyboard, you can use Albert York's TNAPI.
Please understand that
this is a very rarely used technique, and probably is NOT what you want.