Difference between revisions of "WDSC tips"

From MidrangeWiki
Jump to: navigation, search
m (too many square brackets)
m (fix link)
 
(269 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This is a dump of tips gathered from the [[WDSCI-L]] mailing list
+
This is a dump of tips gathered from the [[WDSCI-L]] list.
  
 +
Additional tips for Lpex [[WDSC_LPEX|can be found here]]
  
'''1Is there a way to list libs, objects, members, etc in the Remote Systems view with descriptions?'''
+
The tips are split up into sub-pages.   
  
The tree view doesn't support this - although if you look at the properties view - you will see the description when an item is selected in the tree view.  You should probably try the table view.
+
To see the tips please click on a link below.
Window>Show View>Other (or iSeries Table View)
 
  
 +
==[[/Editor]]==
 +
* [[WDSC shortcuts|Keyboard Shortcuts]]
 +
* [[WDSC tips/Editor#Editor Commands|Editor Commands]]
 +
* [[WDSC tips/Editor#WDSCi vs SEU F15=Browse options|WDSCi vs SEU F15=Browse options]]
 +
* [[WDSC tips/Editor#Position my cursor to where I need to key additional data. (On IBM rqmts list)|Position my cursor to where I need to key additional data. (On IBM rqmts list)]]
 +
* [[WDSC tips/Editor#Do I have to use the mouse to copy lines from one member to another?|Do I have to use the mouse to copy lines from one member to another?]]
 +
* [[WDSC tips/Editor#How can I copy field names in to the member? (On IBM rqmts list)|How can I copy field names in to the member? (On IBM rqmts list)]]
 +
* [[WDSC tips/Editor#Can I condition page ups and downs by cursor position?|Can I condition page ups and downs by cursor position?]]
 +
* [[WDSC tips/Editor#Do I have to continually save my work?|Do I have to continually save my work?]]
 +
* [[WDSC tips/Editor#Auto Marking Changes to the Source|Auto Marking Changes to the Source]]
 +
* [[WDSC tips/Editor#How do I shift a block of text left/right?|How do I shift a block of text left/right?]]
 +
* [[WDSC tips/Editor#Vertical line in WDSCI editor|Vertical line in WDSCI editor]]
 +
* [[WDSC tips/Editor#Prevent Enter generating a new line|Prevent Enter generating a new line]]
 +
* [[WDSC tips/Editor#To Print RPG Indented Source|To Print RPG Indented Source]]
 +
* [[WDSC tips/Editor#To show dates for source lines:|To show dates for source lines:]]
 +
* [[WDSC tips/Editor#See SQL HOST variables in OUTLINE view. (is not possible)|See SQL HOST variables in OUTLINE view. (is not possible)]]
 +
* [[WDSC tips/Editor#Downloading source to PC to work offline|Downloading source to PC to work offline]]
 +
* [[WDSC tips/Editor#OFFLINE work vs ONLINE |OFFLINE work vs ONLINE ]]
 +
* [[WDSC tips/Editor#Fast Open another Source|Fast Open another Source]]
 +
* [[WDSC tips/Editor#Record/Playback for Signature marks|Record/Playback for Signature marks]]
 +
* [[WDSC tips/Editor#Field Exit|Field Exit]]
 +
* [[WDSC tips/Editor#Automatic structure completion|Automatic structure completion]]
 +
* [[WDSC tips/Editor#Enter Key not Working|Enter Key not Working]]
 +
* [[WDSC tips/Editor#Snippets|Snippets]]
 +
* [[WDSC tips/Editor#Switch Auto Syntax Check On/Off|Switch Auto Syntax Check On/Off]]
 +
* [[WDSC tips/Editor#CL auto format|CL auto format]]
 +
* [[WDSC tips/Editor#Show fields in a file|Show fields in a file]]
 +
* [[WDSC tips/Editor#Refresh Cache for New Field|Refresh Cache for New Field]]
 +
* [[WDSC tips/Editor#Work on a fix while keeping another project open|Work on a fix while keeping another project open]]
 +
* [[WDSC tips/Editor#Tracking Source changes|Tracking Source changes]]
 +
* [[WDSC tips/Editor#Column Sensitive Editing|Column Sensitive Editing]]
 +
* [[WDSC tips/Editor#Block Nesting|Block Nesting]]
 +
* [[WDSC tips/Editor#View Source Side By Side|View Source Side By Side]]
 +
* [[WDSC tips/Editor#Refreshing the Project Perspective|Refreshing the Project Perspective]]
 +
[[#top]]
  
'''2.  Can I condition page ups and downs by cursor position?  Or at least jump the cursor to the top or bottom of the displayed view, then I could roll by line up or down. '''
+
==[[/Compile]]==
  
Keys can be easily remapped to do other things - check the mailing list archives for discussions on this at length.
+
* [[WDSC tips/Compile#RPG source was not being saved|RPG source was not being saved]]
You'll also want to read the reference help for what LPEX actions are available/do (scrollTop, scrollUp come to mind)
+
* [[WDSC tips/Compile#Error-messages are still showing in the edit view|Error-messages are still showing in the edit view]]
 +
* [[WDSC tips/Compile#SQLRPGLE Compiles how to find Compile errors|SQLRPGLE Compiles how to find Compile errors]]
 +
* [[WDSC tips/Compile#Within RSE, how to compile Interactively versus Batch|Within RSE, how to compile Interactively versus Batch]]
 +
* [[WDSC tips/Compile#Custom Compile Commands|Custom Compile Commands]]
 +
[[#top]]
 +
==[[/Find]]==
  
Try this from the archives;
+
* [[WDSC tips/Find#Scan for a date when source lines were changed (like F14 in SEU)|Scan for a date when source lines were changed (like F14 in SEU)]]
[http://archive.midrange.com/wdsci-l/200612/msg00013.html]
+
* [[WDSC tips/Find#Find Tips|Find Tips]]
How to set an Alt + xx key to position the current line to the top or bottom of your source window.  I use the alt page up and down keys, I also have alt + t set to put the current line at the top of the editor window.
+
* [[WDSC tips/Find#Find Field usage (for SQL where OUTLINE doesnt work)|Find Field usage (for SQL where OUTLINE doesnt work)]]
 +
* [[WDSC tips/Find#Search|Search]]
  
Ctrl-t (v7) will put the line where the cursor is at the top of the screen.
 
  
 +
[[#top]]
  
'''3.  In SEU, when I hit <enter>, I know it has been saved, even if I lose my session.  Do I have to continually save my work? '''
+
==[[/DEBUG]]==
  
Remote Systems LPEX Editor has an auto-save feature. Default is set to every 5 minutes.  Check out Windows>Preferences, Remote Systems>Remote Systems LPEX Editor
+
* [[WDSC tips/DEBUG#Debug and SEP Service Entry Points|Debug and SEP Service Entry Points]]
 +
* [[WDSC tips/DEBUG#UPDPROD (*YES)|UPDPROD (*YES)]]
 +
* [[WDSC tips/DEBUG#Clear Breakpoints|Clear Breakpoints]]
 +
* [[WDSC tips/DEBUG#Field Values|Field Values]]
 +
* [[WDSC tips/DEBUG#Debug Breakpoints not breaking|Debug Breakpoints not breaking]]
 +
* [[WDSC tips/DEBUG#Debug a crashed Job|Debug a crashed Job]]
 +
* [[WDSC tips/DEBUG#Debug server not starting|Debug server not starting]]
 +
* [[WDSC tips/DEBUG#Displaying the Contents of a Table|Displaying the Contents of a Table]]
 +
[[#top]]
  
I save every PC document after every few lines.  Virtually all PC software recognises Ctrl-S as the 'Save' sequence.  I never take my hands off the keyboard...
+
==[[/SETUP]]==
 
 
 
 
'''4.  In SEU, when I hit enter, the editor will automatically position my cursor to where I need to key additional data?  I know tab moves me to the next input position, but not whether it requires input.  And by the time auto syntax checking informs me, I have spent time reading the message, relocating my cursor, etc.
 
'''
 
 
 
There is no way to currently do this.  It is on IBM's list of requirements.
 
 
 
Automatic cursor positioning can be configured by choosing 'Preferences' from the 'Window' menu. In version 7, you are looking for 'Remote Systems -> Remote Systems LPEX Editor -> iSeries Parsers -> ILE RPG'.
 
 
 
 
 
'''5.  Do I have to use the mouse to copy lines from one member to another?'''
 
 
 
Standard windows copy/paste keys can be used, along with a few extras provided in LPEX (check the Edit menu for selection options)
 
 
 
To copy X lines, put your cursor is on the first line of the block you want to move, press Home, then hold Shift and press the down arrow X times.  Now press Ctrl+C, then Shift+F6 (this is like Alt-Tab in windows, but for LPEX editor tabs) until you get to the target member.  Now find the line you want to insert at, and press Ctrl+V.
 
 
 
Another method not mentioned yet is to mark the lines to copy using Alt-L, and then copy them into position using Alt-C.  The lines will be inserted beginning with the line after your cursor position. You should also explore the other Select/Selected functions, which are listed under the Edit menu with their keyboard shortcuts.
 
 
 
For a list of WDSC keyboard shortcuts, see [[WDSC_shortcuts]]
 
 
 
 
 
'''6.  How can I copy field names in to the member?  I added a table to the Table View, I can see all my fields, but can't copy and paste from there. '''
 
 
 
Drag and drop from table view to RS LPEX is currently not available. It is also on IBM's list of requirements.
 
 
 
You can always open the DDS source and copy the names from there.  Be sure to have a look at the rectangle select - it may come in handy for this (alt-r, alt-c.)
 
 
 
 
 
'''7.  After compiling, getting errors, and fixing them, and recompiling successfully, the error messages are still showing in the edit view. How can I get rid of them with out closing the member?'''
 
 
 
Ctrl+F5, or either Source>Remove Errors, or Source>Refresh. Its on IBM's list of requirements to automatically remove these during error list reloads.
 
 
 
Click the X icon in the top left part of the iSeries Error List view.  (Note: This closes the error list view, but does not clear any errors inserted in the editor window.  However, it is important to remember that the errors are not made a part of the source itself.  They are simply shown in the LPEx editor window.)
 
 
 
Remove messages from the source by choosing SOURCE/Remove Messages from the top of the screen. While you have the
 
Error List window open, click on the triangle in the top right corner of the window, choose Show Severity and uncheck Information to not show informational messages. From the same menu, click Messages, choose Insert Selected Only. This will only insert the message you click on from the Error List Window into the source, and will remove the previous error message when you choose another from the Error List Window.
 
 
 
 
 
'''8.  The outline view of the RPG (or other) program doesn't have any way to show the TEXT associated with the field in a file. Showing the properties of fields in files would be very nice.'''
 
 
 
Right click on a physical file object (not sure if it works on logical files yet) in RSE tree view and select show in table -> fields.  This will open the iSeries Field Table View which gives all the field information.
 
 
 
Try right-clicking on the line with the F-spec and select the Show fields menu option.
 
 
 
If you are using 7.0, you are also able to bring up a Field Table View by highlighting any (PF, LF, DSPF, etc...) file in an RPG program's F-Specs then select Source->Show Fields from the Menu Bar.
 
 
 
The above two tips only work if the file is externally described in the F specification.
 
 
 
 
 
'''9.  Where can I find a list of enhancements in V7?'''
 
 
 
You can find the list here: [http://www-306.ibm.com/software/awdtools/wdt400/news/ga700.html]
 
 
 
 
 
'''10. How do you work through learning the functionality of this application?  Currently I'm just stumbling through the basics, and I know I'm not doing many things the most productive way. '''
 
 
 
I recommend that you try the tutorials included in the product as well as the PDM/SEU transition to RSE/LPEX - which was revamped and rewritten for v7.0.  Also, if you go to the WDSC web site
 
[http://www.ibm.com/software/awdtools/wdt400] and search the support section - you will find additional tutorials and the labs from COMMON.
 
 
 
Don Nitke has a site with a bunch of tutorials at [http://www.modernrpgiv.com/]
 
 
 
Joe Pluta adds: You can use the help and tutorials from within the product itself.  There are some free tutorials out on the web, including my own first one.  You can buy my book, WDSC: Step by Step, which is based on version 5.1.2, but still pretty valid.  You can buy my training course from Rochester Initiative which is now available for version 7.  You can go to a jumpstart at a technical conference, or an all-day standalone seminar sponsored by your local user group.  Or you can contract with someone to come onsite and provide training.
 
 
 
 
 
'''11. I have these strange square symbols in my code.'''
 
 
 
When you are in RS LPEX, right-click and select Source>Hex Edit line,  you will then see the hex value in the iSeries codepage, along with the client codepage.
 
 
 
 
 
'''12. How do I shift a block of text left/right?'''
 
 
 
Select the block of text by putting the cursor on the upper left corner of the block.  Press Alt-R.  Move the cursor to the lower left corner.  Press Alt-R again.  Do '''NOT''' use Windows copy/paste (ctrl-c/x/v)  You now have a block of text selected. 
 
 
 
You can shift it left/right with alt-f7/alt-f8  If you remap the keys, the action is ''blockShiftLeft'' and ''blockShiftRight''
 
You can shift it via the menu Edit, Selected>Shift selection
 
You can uppercase or lowercase it with alt-k/alt-i or via the menu
 
You can move it: position the cursor where you want the upper left corner to end up and press alt-m or use the menu
 
You can copy it with alt-c
 
You can delete it with alt-d
 
 
 
Finally, you can use SEU mode line commands LL and RR typed over the sequence number area.  LLnn will shift left nn columns.  Note that this will shift the entire line of code, not just a section or block.
 
  
 +
* [[WDSC tips/SETUP#User Actions|User Actions]]
 +
* [[WDSC tips/SETUP#What are Profiles and Filter Pools for|What are Profiles and Filter Pools for]]
 +
* [[WDSC tips/SETUP#Remap Keyboard Shortcuts|Remap Keyboard Shortcuts]]
 +
* [[WDSC tips/SETUP#Other Language Setup (Japanese font)|Other Language Setup (Japanese font)]]
 +
* [[WDSC tips/SETUP#Error Installing WDSC 7|Error Installing WDSC 7]]
 +
* [[WDSC tips/SETUP#Missing Filter Option|Missing Filter Option]]
 +
* [[WDSC tips/SETUP#Ghost Image for Install V6|Ghost Image for Install V6]]
 +
* [[WDSC tips/SETUP#V7 Turbo Boost|V7 Turbo Boost]]
 +
[[#top]]
 +
==[[/MISC]]==
  
 +
* [[WDSC tips/MISC#RSEF1002E Error|RSEF1002E Error]]
 +
* [[WDSC tips/MISC#Slightly Faster Startup|Slightly Faster Startup]]
 +
* [[WDSC tips/MISC#Easy Source Upload|Easy Source Upload]]
 +
* [[WDSC tips/MISC#WDSCi Sign Off|WDSCi Sign Off]]
 +
* [[WDSC tips/MISC#The outline view of the RPG (or other) program doesn't show the fields TEXT.|The outline view of the RPG (or other) program doesn't show the fields TEXT.]]
 +
* [[WDSC tips/MISC#List libs, objects, members, etc with descriptions?|List libs, objects, members, etc with descriptions?]]
 +
* [[WDSC tips/MISC#SQL result set only contains 50 rows|SQL result set only contains 50 rows]]
 +
* [[WDSC tips/MISC#I have these strange square symbols in my code.|I have these strange square symbols in my code.]]
 +
* [[WDSC tips/MISC#Run a program on your PC|Run a program on your PC]]
 +
* [[WDSC tips/MISC#Missing Dialogue box in Iseries Command Log|Missing Dialogue box in Iseries Command Log]]
 +
* [[WDSC tips/MISC#Can't remove "work offline" setting|Can't remove "work offline" setting]]
 +
* [[WDSC tips/MISC#Where can I find a list of enhancements in V7?|Where can I find a list of enhancements in V7?]]
 +
* [[WDSC tips/MISC#How do you work through learning the functionality of this application?|How do you work through learning the functionality of this application?]]
 +
* [[WDSC tips/MISC#My workspace is huge!|My workspace is huge!]]
 +
* [[WDSC tips/MISC#WDSC v7.0 LPEX rapidly flashing between multiple source members|WDSC v7.0 LPEX rapidly flashing between multiple source members]]
 +
[[#top]]
 
==External links==
 
==External links==
 
The official WDSC web page [http://www-306.ibm.com/software/awdtools/wdt400/]
 
The official WDSC web page [http://www-306.ibm.com/software/awdtools/wdt400/]

Latest revision as of 02:40, 9 October 2009

This is a dump of tips gathered from the WDSCI-L list.

Additional tips for Lpex can be found here

The tips are split up into sub-pages.

To see the tips please click on a link below.

/Editor

#top

/Compile

#top

/Find


#top

/DEBUG

#top

/SETUP

#top

/MISC

#top

External links

The official WDSC web page [1]

The WDSC Developer blog [2]

WDSC tags on del.ici.ous [3]

Categories