This chapter discusses how to:
Modify queries.
Schedule queries.
Organize queries
This section discusses how to:
Open existing queries.
Rename queries.
Delete queries.
Update existing queries.
Repair existing queries automatically.
Use Query Manager to open and view queries.
To open an existing query from your browser:
Select Reporting Tools, Query, Query Manager.
The Query Manager Search Results page appears.
Search for a query using the basic or advanced search functions.
Both search types enable you to select from the following search by criteria: access group name, description, folder name, owner, query name, type, uses field name, and uses record name. The basic search enables you to search using the begins with condition. The advanced search enables you to perform a progressively narrower search using one or more search by criteria and selecting from a choice of conditions for each search by criterion. The following list provides instructions on using search by criteria:
To perform a basic search by name, enter the name of the query in the Search By field and click the Search button.
If you do not know the name of the query and want to search through a list of queries, leave the Search For field blank and click the Search button to display a list of up to 300 queries.
Perform a partial search by entering part of a query name or description in the Search By field. Use the drop-down list box to search queries by either name or description, and then click the Search button to display a list of queries that match your search criteria.
The Search Results page appears and lists all the queries that match the search criteria. The following information appears: query name, query description, and ownership (public or private).
If you know the name of the query that you want, enter it in the Search By field and click the Search button.
To perform an advanced search, click the Advanced Search link.
On the advanced search page, select the appropriate search by criteria and conditions and enter a search string in each of the corresponding fields. Then click the Search button to display a list of queries that match your search criteria. The Search Results page appears listing the query name, description, owner, and folder for all the queries that match the search criteria.
Click the Edit link on the row of the query that you want to modify.
See Also
You can rename existing queries.
To rename a query:
Select PeopleTools, Utilities, Administration, Query Administration.
On the Admin (Administration) page, choose a predefined search or a manual search by clicking the respective Search button.
Select the Queries from the Query List.
Click Rename.
The Rename Queries page appears, listing the current query names and query owners.
Click OK to save your changes.
Note. Alternatively, you can use the Query Manager search page (Reporting Tools, Query, Query Manager) to rename a query. You must first select a query that you want to rename, and then select Rename Selected from the Action drop-down list box.
You can delete any public query that you have access to as well as any private query that you have created.
To delete a query:
Select PeopleTools, Utilities, Administration, Query Administration.
On the Admin (Administration) page, choose a predefined search or a manual search by clicking the respective Search button.
Click Delete.
The Query Delete Verification page appears.
Click Yes to confirm the deletion or No to avoid deletion.
Note. Alternatively, you can use the Query Manager search page (Reporting Tools, Query, Query Manager) to delete a query. You must first select a query that you want to delete, and then select Delete Selected from the Action drop-down list box.
At times, you might want to update a query to reflect new conditions or copy an existing query and modify it for other uses. You can open a query, examine it to determine whether it is suitable, and then use the Save As function to save it with a new name.
To update an existing query:
Select Reporting Tools, Query, Query Manager.
On the Query Manager Search Results page, find the query that you want to modify and click its Edit link.
The Fields page appears.
Navigate to the page that you want to modify—except the Run page.
Enter the new information on the page.
Click either the Save button to update the existing query, or the Save As link to save a different instance of the query under a new name.
Note. When using Microsoft Windows-based Query Designer, any modification to a previously saved query needs to be saved before downloading query results to Microsoft Excel or to Crystal Reports 9. A message will appear reminding you to save your work. This is to ensure that accurate data are displayed. New ad-hoc queries that have never been saved before in the database can be downloaded to Microsoft Excel and to Crystal Reports 9 without having to save after every modification.
A record definition that is used in a query may change. When this occurs, PeopleSoft Query automatically repairs the query when it is opened. A warning message informs you about the problem and what actions were taken:
Note. If a record has been deleted, the query no longer appears in the list of queries because you no longer have access to all of the records in that query. To open such a query, you need to use Query API.
See Also
Query Manager interacts with PeopleSoft Process Scheduler to enable you to schedule queries.
This section discusses how to:
Submit process requests.
Select process requests.
Use Process Monitor.
View output in Report Manager.
Specify a user’s language.
A process request enables you to submit a job or process to run. The Schedule Query page submits a process request and brings up the Process Request page, which enables you to specify such variables as where to run the process and in what format to generate the output based on a run control ID.
To submit a process request:
Select Reporting Tools, Query, Schedule Query.
Search for and select an existing run control ID, or select the Add New Value tab to enter a new ID.
Select the query for which you want to schedule and update any prompt parameters.
Use the Update Parameters link to select or change the value that is required for each available prompt. When values have been selected, they appear in the Prompt Name and Value fields.
Note. If the query does not have any prompt, the Update Parameters link does not appear.
Note. If you have one or more Asian languages installed, select the language that you want from the Asian Font drop-down list box. This drop-down list box appears only if you have one or more Asian languages installed.
Click the Save button to save changes and remain on the Schedule Query page.
Click the Run button to submit the query process request and display the Process Scheduler Request page.
When you are scheduling queries from Query Manager or Query Viewer, the Run button is replaced with an OK button.
Click the Process Monitor link to view the status of your request; click the Report Manager link to view the output of your request.
Note. If a Query that is used as a data source for XML Publisher is run through Reporting Tools, Query, Schedule Query, the XML Publisher-related prompts do not appear. The normal basic table-formatted Query results will be generated.
See Submitting and Scheduling Process Requests.
See Scheduling Reports in Query Report Scheduler.
The Process Scheduler Request page enables you to set the server, run date and time, how often the process runs (the recurrence of the process), output type, and format.
To select a process request:
Select Reporting Tools, Query, Schedule Query.
Select a run control ID, and click the Run button.
The Process Scheduler Request page appears.
Complete the fields on the Process Scheduler Request page.
Click OK to run the query.
The system displays the Schedule Query page. The process instance number appears below the Run button.
Click the Process Monitor link to view the status of your request.
The Process List page appears. The Run Status field reveals the status of your scheduled or running process.
The Process Monitor can be used to view the status of your process requests.
You can access the Process Monitor by clicking the Process Monitor link on the Schedule Query page or by navigating to PeopleTools, Process Scheduler, Process Monitor.
Process Monitor consists of two pages: the Process List page and the Server List page.
The Process List page enables you to monitor the process requests that you have submitted.
You can select filtering options—for example, process type and run status—to view only selected process requests. And you can click the Details link to view details that are associated with particular process requests.
The Server List page enables you to monitor the PeopleSoft Process Scheduler server agents within your system.
Process Monitor - Process List page
User ID |
View the processes that were submitted by a particular user ID. Usually, you view by your own user ID. |
Type |
View by a particular process type—for example, Application Engine. |
Last |
Specify an interval of time by which to limit the process requests that appear in the list. Enter a numerical value in the edit box preceding the drop-down list box, and then select a unit type from the drop-down list box. Values are Days, Hours, and Minutes. |
Refresh |
Click to check the current status of a process. This button refreshes the list. |
Server |
Select to view processes that run on a particular server. |
Name |
View processes by a process name. |
Instance |
Specify a range of instances by which to limit the process requests that appear in the list. To limit the view to a single request, enter the required instance ID in the first text field. |
Run Status |
Select if you want to view processes by a specific status, such as Success or Error. |
Displays the distribution status for each individual job and process. Valid statuses are N/A, None, Generated (OS390), Not Posted, Posting, and Posted. |
|
Save On Refresh |
Select to save filter criteria changes when you click the Refresh button. |
Displays the process instance, that is, the order in which the process appears in the queue. This number is automatically generated. |
|
Seq (sequence) |
This field is blank; it is not used for query processes. |
User |
The ID of the user who submitted the process. |
Details |
Click to open the Process Detail page. |
Report Manager is like your own personal inbox of reports and process output. It provides a secure way to view report content, check the posting status of your output, and see content detail messages.
View all of your reports by opening your Report List in your browser.
Select Reporting Tools, Report Manager, or click the Report Manager link on the Schedule Query page.
Note. XML Publisher reports may also be viewed by navigating to Reporting Tools, XML Publisher, XMLP Report Search.
See Also
Working With Processes and Reports
Searching the XML Publisher Report Repository
For scheduled queries, the system uses the language that is specified in the user’s profile, not the language that is selected during sign-in. The system also uses the international and regional settings that the user has specified using My Personalizations. If you have not specified personal settings, the system uses the default installation international settings.
Note. Most PeopleSoft components can use the international settings from the browser by default if the user has not set any user specific settings. However, this is not available for scheduled queries or any PeopleSoft Process Scheduler processes.
See Also
This section discusses how to:
Add queries to the My Favorite Queries list.
Copy a query to another user's list of queries.
Move a query to a folder.
The Query Manager and Query Viewer search pages can include a list of queries called My Favorite Queries. If you use certain queries often, you can put the queries in this list for easy access.
Note. Although you can view a list of favorites, you can't create a list of favorites in the Query Viewer.
To add a query to the My Favorite Queries list:
Select Reporting Tools, Query, Query Manager.
On the Query Manager Search Results page, select the query that you want to add to the My Favorite Queries list.
Select the Add to Favorites option from the Action drop-down list box.
Click the Go button.
The query appears in the My Favorite Queries list group box .
Note. You can add multiple queries to the My Favorite Queries list at once by selecting several queries before selecting Add to Favorites and clicking the Go button.
The Query Manager enables you to copy a query from your list of queries to another user's list of queries.
Note. You can copy only non-public queries to another user's list of queries.
If the target user does not have permission to access all of the records in a copied query, that query does not appear in
the target user's list of queries. When permission has been granted, the query appears in the list.
To copy a query to another user's list of queries:
Select Reporting Tools, Query, Query Manager.
On the Query Manager search results page, select the query or queries that you want to copy.
Select the Copy to User option from the Action drop-down list box.
Click the Go button.
The Enter User ID page appears.
Enter the user ID of the user to whom you want to copy the query.
Click OK.
Organizing queries in folders can help you more easily access the queries.
To move a query to a folder:
Select Reporting Tools, Query, Query Manager.
On the Query Manager search results page, select the query or queries that you want to move to an organization folder.
Select the Move to Folder option from the Action drop-down list box.
Click the Go button.
The Move to Folder page appears.
Select one of the following:
Click OK.