GetSQL - PeopleCode Commands Directory
&sql=GetSQL(SQL.SqlName [, param1]...);
Returns new SQL object populated with Application Designer SQL Statement, replacing bind variables with parameters - which can either be a list or an array of any.
If this has not answered your question - either search on Google or ask a question below:
Create a simple Launch Page for your PeopleSoft Databases