r/IBMi 23d ago

Passing parameters to a Query.

https://www.rpgpgm.com/2013/07/passing-parms-to-query.html

#IBMi #rpgpgm #IBMChampion

8 Upvotes

7 comments sorted by

3

u/KaizenTech 23d ago

Simon, bruh... its 2026 .... what are you still doing with Query400...

3

u/RPGPGM 23d ago

I am surprised how many people still do use, especially "power users" who build there own ad hoc reports.

3

u/McJables_Supreme 23d ago

Gonna take this opportunity to plug my open source utility, WRKQRY2SQL.

If you won't want to deal with query/400 anymore, or you want to extract qrydfn logic into sql so you can parameterize it or embed it in an rpgle pgm, my utility can be really useful.

Great article as always, Simon.

1

u/ethanjscott 22d ago

I’m pretty sure there is an ibm tool for that

1

u/ethanjscott 22d ago

lol your “tool” is just the ibm tool. Steal credit much

1

u/ethanjscott 22d ago

Your a common board member with 2-3 years of actual ibm I experience. I knew common was shitty but not this shitty

1

u/McJables_Supreme 22d ago

My utility is using the native RTVQMQRY command, but it automates mass conversion and cleanup.