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 component to open and view queries.
This is an example of the Query Manager component:
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 using the Rename Queries page, as shown:
To rename a query:
Select PeopleTools, Utilities, Administration, Query Administration.
On the Admin (Administration) page, select a predefined search or a manual search by clicking the respective Search button.
Select the queries from the Query List.
Click the Rename button.
The Rename Queries page appears, listing the current query names and query owners.
Click the OK button 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, select a predefined search or a manual search by clicking the respective Search button.
Click the Delete button.
The Query Delete Verification page appears.
Click the Yes button to confirm the deletion or click the No button 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.
Access the tab that you want to modify the information—except the Run tab.
Enter the new information.
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 must be saved before downloading query results to Microsoft Excel or to Crystal Reports 2008. 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 2008 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.
This table lists the problems and their corresponding actions:
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.
This is an example of the Schedule Query page:
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.
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.
Schedule Query with Tree Prompt
You can schedule queries that have tree prompts using the Schedule Query component or using the Schedule links in the Query Manager and Query Viewer. While scheduling these queries, you are prompted for selecting the tree for the specified field and its node list. After the successful selection of values for the tree prompts, other prompts are available for your input. These queries can either be saved and used in the future or can be scheduled and run immediately by clicking the Run button.
This is an example of the Schedule Query page when you run a query that has a criteria with tree prompt:
The Update Tree Parameters link is available if you are running queries that have tree prompts. Click this link to access the Select a Tree page and the Select Tree Node page, where you can select a tree and its node list. |
|
The Tree Prompts section displays the field names and expression texts, which will be used in forming the SQL before running the query. |
Note. In Windows query application psqed.exe, you also can create tree prompts and use that prompts to enter input at runtime. Execution of the query is similar to PIA Query Manager, where you select the tree node to run the query.
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.
This example shows the Process Scheduler Request page:
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 the OK button 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 selecting 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.
This example shows the 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 in-box 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.
You can view all of your reports by opening your Report List in your browser.
To access the Report Manager, select Reporting Tools, Report Manager, or click the Report Manager link on the Schedule Query page.
This is an example of the Report Manager - List page:
Note. XML Publisher reports can 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 nonpublic 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 the OK button.
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 the OK button.