connecting to different database in sqr

Hi,
My requirement is to generate a single text output which fetches data from two different databases. I have two different sqrs to generate text file1(data from db1) and file2(data from db2). can I execute both the sqrs from a single shell script? If yes, pls let me know how to connect to db2 and run sqr from the same script.

TIA.

you can loop both or you can copy paste the code from one sqr to another. Also people don't understand what's sqr but i know it's from Peoplesoft right? i don't quite remember the parameters, but there lot lots of info here regarding looping

$SQRDIR/sqr $FULLPATH_SQRPROG @$PWDFILE $PARMLIST