Like everyone else, I'm trying to make an easy way for several queries
to be run, with ever-changing variables. Any info is appreciated.
Then you use the SETVAR parameter on the STRQMQRY command.
For example,
select * from &FILE
then STRQMQRY qryname SETVAR((FILE 'MYFILE')) or
STRQMQRY qryname SETVAR((FILE &FILE))
Hope this helps.
James Coolbaugh
JDC Computer Services Inc.
IBM Certified Specialist - AS/400 RPG Programmer
j...@ohio.net
One minor correction... the variable need not be in all caps; it simply must
match the case of the variable-name that's passed in through the STRQMQRY
command. Since the name is usually (and best) passed in unquoted, it gets
converted to all caps by default.
Tom Liotta
In article <01bd8eec$e3dd5040$a5c831cf@vzngemwl>,
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading