Gamache Consulting
About Us Contact Us Links Search
   
  Application Development for iSeries and Microsoft platforms
Home
Microsoft
Web Development
AS/400 - iSeries
Tradesphere from Vastera
RSP (RPG Server Pages) Tips
Excel Tips
System i Tips
SQL Tips
Live Support

 

 
 

 

    Here are some tips & techniques for the iSeries that I've found useful.

Contract All | Expand All
To enable Ctl-C and Ctl-V to Copy and Paste in an emulation screen
 
  • From the Emulator menu bar, select Edit, Preferences, Keyboard, then click the Customize button.
  • Click the "C" key on the keyboard image.
  • On the left side of the screen, on the Function dropdown list, select EditCopy.
  • Click the arrow to the left of "Ctrl". The white box to the right should then say "[edit-copy]".
  • Click the "V" key on the keyboard image.
  • On the left side of the screen, on the Function dropdown list, select EditPaste.
  • Click the arrow to the left of "Ctrl". The white box to the right should then say "[edit-paste]".
  • Close the window, answering Yes when you're prompted to save your changes.


  • To set the Emulation window title bar when opening a new window
     
  • From the Emulator menu bar, select Edit, Preferences, Macro, then click the Customize button.
  • Select File, New, VB Script from the menu bar in the dialog box.
  • Paste the following code into the script statement window


  • [PCOMM SCRIPT HEADER]
    LANGUAGE=VBSCRIPT
    DESCRIPTION=
    [PCOMM SCRIPT SOURCE]
    OPTION EXPLICIT
    autECLSession.SetConnectionByName(ThisSessionName)

    REM This line calls the macro subroutine
    subSub1_

    sub subSub1_()
    autECLSession.autECLWinMetrics.WindowTitle = inputbox("Enter window title")
    end sub



  • Select File, Save and save the macro under any name you prefer. This will create the macro
  • Exit the window by selecting File, Exit
  • In the "macro/script" drop down list, select the macro you just created as the autostart macro, then press OK.
  • Select File, Save to save the Emulator setup
  • Now the next time you start a session, you will be automatically be prompted to enter a name. That name will be used on the Windows toolbar and on the Session Title bar to make it easy to identify your various iSeries sessions.