Before you begin, you must complete Exercise 6.3: Creating an object filter.
In PDM you can create user actions in addition to using the pre-supplied system actions. In Remote System Explorer you can do the same. You define user actions through the Work With User Actions window. User actions can be defined for iSeries libraries, objects, members and jobs as well as folders and files in any remote UNIX, Windows, Linux, Local, or IFS system.
To open the Work with User Actions wizard:
The Work with User Actions window opens.
You want to create a user action that copies a source file with data to a
new source file called QJUNKSRC in the same library.
This is the command you will be running:
CRTDUPOBJ OBJ(&N) FROMLIB(&L) OBJTYPE(&T) NEWOBJ(QJUNKSRC) DATA(*YES)
Specifying user action parameters
To specify user action parameters:
Now the Duplicate data parameter is also shown on the prompt window.
You return to the Work with User Actions window.
This user action is only valid for Source physical files. You need to specify this restriction so this user action will only show in pop-up menus when you right-click on a source physical file.
Specifying a restriction on a user action
To specify this restriction:
FILE_SRC is now one of the selected types. Actually since you only selected this one it is the only one.
Now, only when you right-click on a source file, will this user action appear on the pop-up menu. For any other object type it will not appear. Back in the workbench and the Remote System view, give it a try.
Trying the user action
To try your user action:
The file gets duplicated and the list gets refreshed. Your new
source file will show in the list. You can check the messages of the CL
commands you are running in the RSE Communications server job by looking at
the iSeries Commands log in the right hand side bottom pane of the
workbench.
The Delete Confirmation dialog opens.
You have created a user action that copies a source file with data to a new source file, specified user action parameters, specified restrictions on the user action and tried the user action and you are ready to begin Exercise 6.2: Creating a library filter.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.