You can specify retrieval arguments in the SQL editor when you add saved query files for your SQL statement operations in the Database Service editor.
To specify retrieval arguments in a query file:
Open the query file you want to edit in the SQL editor.
Click inside the SQL editor and select Design|Retrieval Arguments from the main menu bar to open the Specify Retrieval Arguments dialog and add an argument.
Adding an argument to create a Where clause:
Enter the argument name and type, and click OK.
Select the column from the Column drop-down list in the Where tab.
Select the operator from the Operator drop-down list.
Right-click in the Value column, select Arguments from the context menu, select the argument, and click Paste.
Save the query file. Select File|Save in the main menu bar
Preview the results:
Select Execute from the Design menu to open the Specify Retrieval Arguments dialog.
Enter a value for the argument you created, and click OK.
Select the Results tab to preview the results.
Save the query file. Select File|Save in the main menu bar.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com