Difference between revisions of "RSE"

From MidrangeWiki
Jump to: navigation, search
m
 
(RSE tips)
Line 4: Line 4:
  
 
On the iSeries, the RSE allows you to navigate through [[Libraries]], [[Objects]], [[Files]], [[Source Members]], [[IFS]] files, [[Jobs]], and [[Commands]].  For each type, context appropriate options are available through a pop-up menu.
 
On the iSeries, the RSE allows you to navigate through [[Libraries]], [[Objects]], [[Files]], [[Source Members]], [[IFS]] files, [[Jobs]], and [[Commands]].  For each type, context appropriate options are available through a pop-up menu.
 +
 +
==Running a user action==
 +
This is conceptually like running a user option in PDM.
 +
 +
Summary:
 +
<br>
 +
Go to an iSeries command line and prompt your command.  Fill in the parameters with place holders instead of actual values.  Don't press Enter, press F14 to see a summary of the command.  Copy that onto the clipboard.
 +
 +
Go to the Remote Systems view.  Right click on an object or member and choose ''User actions''  From there, choose ''Work With User Actions...'' 
 +
 +
Detail:
 +
<br>
 +
For this example, let's use CVTRPGSRC
 +
 +
Go to an iSeries command line and prompt CVTRPGSRC.  Substitution variables you can use:
 +
 +
<pre>
 +
&B - List type: X=library list, L=Library, O=Object, M=Member, J=Job, I=IFS
 +
&C - Name of this user action
 +
&D - Last modified date
 +
&E - Run in batch *YES/*NO
 +
&F - File name containing member
 +
&G - JOBD library
 +
&H - JOBD name
 +
&MF- Temp file name (invoke once)
 +
&ML- Temp lib name (invoke once)
 +
&MM- Temp mbr name (invoke once)
 +
&N - Resource/member name
 +
&O - Object library
 +
&P - Compile in batch *YES/*NO
 +
&R - Replace when compiling *YES/*NO
 +
&S - Object/member type without asterisk
 +
&T - Object/member type with asterisk
 +
&U - User ID that made the connection
 +
&X - Object/member text in single quotes
 +
&Z - Connection name
 +
</pre>
 +
 +
The resulting command after pressing F14:
 +
<pre>
 +
CVTRPGSRC FROMFILE(&L/&F)     
 +
          FROMMBR(&N)         
 +
          TOFILE(&L/QRPGLESRC)
 +
          TOMBR(&N)           
 +
          LOGFILE(*NONE)     
 +
</pre>
 +
 +
Go to the Remote Systems view, right click a member or object.  Choose ''User actions''  From there, choose ''Work With User Actions...''  This is CVTRPGSRC, so it's a member action not an object action.
 +
 +
Action name: cvtrpgsrc
 +
<br>
 +
Comment: <blank>
 +
<br>
 +
Command: Normal command
 +
<br>
 +
paste the above command into the command window
 +
 +
Check the ''Refresh after'' box - this will refresh the view after your command has run.  This is handy if your filter includes both QRPGSRC and QRPGLESRC.
 +
 +
Check the ''Show action'' box - this will display this action only for the types you select in the ''Resource types for which this action will appear'' box below.  The idea is that you don't want to accidentally run CVTRPGSRC on CL...
 +
 +
Choose the RPG defined type and add it to the Selected Types list.
 +
 +
Click ''Create'' then ''Close''
 +
 +
To use your new command, fire up the Remote Systems view
 +
<br>
 +
Right click an RPG source member
 +
<br>
 +
..User Actions
 +
<br>
 +
....cvtrpgsrc
 +
 +
You should now have a QRPGLESRC version of your RPGIII member.
 +
  
 
==Categories==
 
==Categories==
 
[[Category:WDSC]]
 
[[Category:WDSC]]
 
[[Category:Definitions]]
 
[[Category:Definitions]]

Revision as of 19:19, 30 March 2007

RSE, an acronym for Remote System Explorer, which is part of WDSC.

It allows you to navigate remote systems in a native context.

On the iSeries, the RSE allows you to navigate through Libraries, Objects, Files, Source Members, IFS files, Jobs, and Commands. For each type, context appropriate options are available through a pop-up menu.

Running a user action

This is conceptually like running a user option in PDM.

Summary:
Go to an iSeries command line and prompt your command. Fill in the parameters with place holders instead of actual values. Don't press Enter, press F14 to see a summary of the command. Copy that onto the clipboard.

Go to the Remote Systems view. Right click on an object or member and choose User actions From there, choose Work With User Actions...

Detail:
For this example, let's use CVTRPGSRC

Go to an iSeries command line and prompt CVTRPGSRC. Substitution variables you can use:

&B - List type: X=library list, L=Library, O=Object, M=Member, J=Job, I=IFS
&C - Name of this user action
&D - Last modified date
&E - Run in batch *YES/*NO
&F - File name containing member
&G - JOBD library
&H - JOBD name
&MF- Temp file name (invoke once)
&ML- Temp lib name (invoke once)
&MM- Temp mbr name (invoke once)
&N - Resource/member name
&O - Object library
&P - Compile in batch *YES/*NO
&R - Replace when compiling *YES/*NO
&S - Object/member type without asterisk
&T - Object/member type with asterisk
&U - User ID that made the connection
&X - Object/member text in single quotes
&Z - Connection name

The resulting command after pressing F14:

CVTRPGSRC FROMFILE(&L/&F)      
          FROMMBR(&N)          
          TOFILE(&L/QRPGLESRC) 
          TOMBR(&N)            
          LOGFILE(*NONE)       

Go to the Remote Systems view, right click a member or object. Choose User actions From there, choose Work With User Actions... This is CVTRPGSRC, so it's a member action not an object action.

Action name: cvtrpgsrc
Comment: <blank>
Command: Normal command
paste the above command into the command window

Check the Refresh after box - this will refresh the view after your command has run. This is handy if your filter includes both QRPGSRC and QRPGLESRC.

Check the Show action box - this will display this action only for the types you select in the Resource types for which this action will appear box below. The idea is that you don't want to accidentally run CVTRPGSRC on CL...

Choose the RPG defined type and add it to the Selected Types list.

Click Create then Close

To use your new command, fire up the Remote Systems view
Right click an RPG source member
..User Actions
....cvtrpgsrc

You should now have a QRPGLESRC version of your RPGIII member.


Categories