fhg
Volume 7, Number 8 -- February 28, 2007

Customize the Tab Key in WDSc

Published: February 28, 2007

by Jon Paris

One of the things I like about WebSphere Development Studio Client (WDSc) is having the ability to use the Tab key to move through an RPG spec without having to prompt as I would in SEU. But it is WDSc's ability to customize the tab key behavior that I really like.

To change the standard tab settings, open the Preferences dialog from the Windows menu pull-down and then drill down to Remote Systems --> iSeries --> LPEX editor parsers -> ILE RPG as shown below:

(Click here to see a larger image)

Notice the "User Defined Tabs" check box. Once this is selected the tab settings area below it becomes active. In the example I have selected the Definition spec. Notice that each tab position is marked by a circumflex (^) symbol (a.k.a. a "hat" or "caret" to most of us). Setting up your own custom tabs is simply a matter of positioning the circumflex symbols in the right spots.

In the screenshot below, you can see my customized settings. Some of the positions may surprise you so I will briefly explain the thinking behind the choices after you take a look.

(Click here to see a larger image)

  • The first tab stop after the "D" is at the second character in the name area. When we designed the RPG IV language at IBM, we were foolish enough not to leave a gap between the D and the name. As a result, in many programs the variable names look really horrible because they all start with a D! (For example DcustNum, DdiscountCode, Daddress, etc.) So I always start the name in the second position.
  • Most of the time, I am defining fields within data structures, so the next tab stop is at field length. Since most field lengths will be either one or two digits, the tab stop is at the second to last position. When defining a stand-alone variable or a data structure, I simply use the mouse to position the cursor.
  • My next stop is at the second position of the decimal places area. When was the last time you defined a field with more than 9 decimals!
  • The keywords area is next, followed by comments--although I rarely if ever use that area, preferring to use line comments instead.

Once the changes have been made, all that remains is to push the "Apply" button and you are done. When you return to your edit window, the new tabs will be immediately in force.

Although these days I do the vast majority of my coding in /Free, I also make similar changes to my C specs (among others) as you will see in the picture below. Since I can't remember the last time I used the level break and indicator areas, and rarely use Factor 1, the first stop is at the Opcode. Next stop is Factor 2 and, apart from the comment area, that's it.

(Click here to see a larger image)

I also occasionally use fixed form calcs for teaching purposes, so that format is similarly customized with stops at the Opcode, Factor 2, and Result only. After all, we wouldn't want to encourage anyone to use those nasty length definition or resulting indicators, now would we?

Once last point before I close. For some strange reason, the current version of WDSc seems to go off into la-la land for a while if you insert a large number of spaces to position a tab stop. I have found things work more smoothly if I delete unwanted stops and then insert spaces to reposition the remaining stops.


Jon Paris is one of the world's most knowledgeable experts on programming on the System i platform. Paris cut his teeth on the System/38 way back when, and in 1987 he joined IBM's Toronto software lab to work on the COBOL compilers for the System/38 and System/36. He also worked on the creation of the COBOL/400 compilers for the original AS/400s back in 1988, and was one of the key developers behind RPG IV and the CODE/400 development tool. In 1998, he left IBM to start his own education and training firm, a job he does to this day with his wife, Susan Gantner--also an expert in System i programming. Paris and Gantner, along with Paul Tuohy, are co-founders of System i Developer, which hosts the new RPG & DB2 Summit conference. He can be reached at jon@systemideveloper.com.



                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
PROFOUND LOGIC SOFTWARE

RPGsp - True Modernization

 

It isn't true modernization unless
it's done with RPGsp.

 

                                           · Convert to true Web apps or Screen-scrape
                                           · Build Web 2.0, AJAX, Dashboards, and more
                                           · Use Visual Debugger, Designer, Wizards, and many other tools

 

                                           All built into a powerful IDE.

 

Give Modernization with RPGsp a try

 

www.RPGsp.com


Senior Technical Editor: Ted Holt
Technical Editors: Howard Arner, Joe Hertvik, Shannon O'Donnell, Kevin Vandever
Contributing Technical Editors: Joel Cochran, Wayne O. Evans, Raymond Everhart,
Bruce Guetzkow, Brian Kelly, Marc Logemann, David Morris
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

COMMON:  Join us at the 2007 conference, April 29 – May 3, in Anaheim, California
Computer Keyes:  Rapidly convert *SCS printer files into black and white of full color PDF documents
Patrick Townsend & Associates:  Alliance AES/400 - database field encryption


Books on Sale at the IT Jungle Store: 30 Percent Off for 30 Days

The System i Pocket RPG & RPG IV Guide: List Price, $69.95; Sale Price, $49.00
The iSeries Pocket Database Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket Developers' Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket SQL Guide: List Price, $59.00; Sale Price, $41.00
The iSeries Pocket Query Guide: List Price, $49.00; Sale Price, $34.00
The iSeries Pocket WebFacing Primer: List Price, $39.00; Sale Price, $27.00
Migrating to WebSphere Express for iSeries: List Price, $49.00; Sale Price, $34.00
iSeries Express Web Implementer's Guide: List Price, $59.00; Sale Price, $41.00
Getting Started with WebSphere Development Studio for iSeries: List Price, $79.95; Sale Price, $56.00
Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00; Sale Price, $62.00
Getting Started with WebSphere Express for iSeries: List Price, $49.00; Sale Price, $34.00
WebFacing Application Design and Development Guide: List Price, $55.00; Sale Price, $38.00
Can the AS/400 Survive IBM?: List Price, $49.00; Sale Price, $34.00
The All-Everything Machine: List Price, $29.95; Sale Price, $21.00
Chip Wars: List Price, $29.95; Sale Price, $21.00

 

The Four Hundred
IBM Seeks More CODE/400 Converts with WDSc 7.0

Midrange LUGs Are Changing the Way They Operate

Server Sales Up a Bit in 2006, But Q4 Looks a Bit Weak

As I See It: Disorderly Conduct

The Linux Beacon
Server Sales Up a Bit in 2006, But Q4 Looks a Bit Weak

Many Top Open Source Projects Still Lack Enterprise Support

Ballmer Dismisses Linux Threat, Talks Up Intellectual Property

Mad Dog 21/21: Paved With Good Intentions

Four Hundred Stuff
Approva Automates Compliance Efforts with BizRights

PowerTech Unveils New Password Utility

New BOSaNOVA Appliance Encrypts Tape Backups

S4i Gives DASD-Plus a New GUI

Big Iron
IBM Previews Future z/OS, z/VM Mainframe Operating Systems

Top Mainframe Stories From Around the Web

Chats, Webinars, Seminars, Shows, and Other Happenings

System i PTF Guide
February 24, 2007: Volume 9, Number 8

February 17, 2007: Volume 9, Number 7

February 10, 2007: Volume 9, Number 6

February 3, 2007: Volume 9, Number 5

January 27, 2007: Volume 9, Number 4

January 20, 2007: Volume 9, Number 3

The Windows Observer
Ballmer Casts a Pall on Vista Sales Expectations

Microsoft Posts Free Vista Deployment Tools

Alaska Air Takes Off to SCM with AccuRev

Accruent Fills a Gap in Real Estate Management

The Unix Guardian
HP Adds Entry Itanium Servers, Finally Delivers HP-UX 11i v3

Unix Is Dead? It Isn't Even Sick. . .

Chip Makers Strut Their Stuff at ISSCC

As I See It: Measuring What Counts

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

THIS ISSUE SPONSORED BY:

Patrick Townsend & Associates
Profound Logic Software
WorksRight Software



TABLE OF CONTENTS
Determining the Value of Built-in I/O Functions

Customize the Tab Key in WDSc

Admin Alert: Better Subsystem Throughput Via Multiple Job Queues, Part One

Four Hundred Guru

BACK ISSUES

From the IT Jungle Forums
MCH5003 creating objects in library

'Piping' output from OS400 commands

Referencing the key of current record

RSTOBJ to a specific library

Java Developer Position In New York City





 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement