sedit manual

Upload: bobcrc

Post on 08-Aug-2018

213 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/22/2019 SEDIT Manual

    1/746

    SEDIT and S/REXXUsers Guide and Reference Manual

    SEDIT Release 5.02 S/REXX Release 3.02

    Revision 01

  • 8/22/2019 SEDIT Manual

    2/746

    Important Copyright Notice

    Benaroya S.A.R.L. owns the copyright to the SEDIT, S/REXX and S/REXX

    Debugger computer programs with all rights reserved. Under the copyright

    laws, these programs may not be copied, in whole or part, without the written

    consent of Benaroya S.A.R.L., except to install them onto a licensed computer

    system.

    Benaroya S.A.R.L. reserves the right to make changes in specifications and oth-

    er information contained in this publication without prior notice, and the reader

    should in all cases consult Benaroya S.A.R.L. to determine whether any such

    changes have been made. This manual may not be reproduced and is intended

    for the exclusive use of Benaroyas customers.

    The terms and conditions governing the sale of the programs licence software

    consist solely of those set forth in the licence agreement included with this pack-

    age. No statement contained in this publication shall be considered a warranty

    by Benaroya S.A.R.L. for any purpose or give rise to any liability of Benaroya

    S.A.R.L.

    SEDIT, S/REXX and S/REXX Debugger are registered trademarks of Benar-

    oya S.A.R.L.

    UNIX is a trademark of X/OPEN Company LTD.

    IBM is a registered trademark of International Business Machines.

    OpenLook is a trademark of Novell.KEDIT is a registered trademark of the Mansfield Software Group, Inc.

  • 8/22/2019 SEDIT Manual

    3/746

    Table of Contents

    SEDIT Reference Manual Page 2

    Table of Contents

    Installing SEDIT on UNIX Systems ............................................................1

    Using a Grey Scale Monitor ....................................................................................2Setting the Background Color .................................................................................2

    Setting the Path ........................................................................................................2Setting the Password for CPU Bound Licenses ......................................................3

    Setting the Keyboard Mapping ............................................................................... 6Setting the MOTIF Resources ................................................................................ 7Setting the Keyboard Translations for an ASCII Terminal .................................... 8

    Using MKESC ....................................................................................................8

    Installing SEDIT on WINDOWS Systems ................................................12

    Installing S/REXX on UNIX Systems .......................................................15

    Setting the Password in Fixed License Mode ...................................................... 16

    Installing S/REXX on WINDOWS Systems .............................................19

    Using the License Server ............................................................................21

    Installing xserv on UNIX systems .........................................................................21

    Installing xserv on WINDOWS systems .............................................................. 24Using an Alternate Server .................................................................................... 26Reserving Licenses on UNIX Systems ..................................................................26

    Reserving Licenses on WINDOWS systems ........................................................26Configuring a UNIX Heterogeneous Network ......................................................26Setting the SEDIT Idle Time .................................................................................26

    Setting the S/REXX Linger Time ..........................................................................27Logging Activity on UNIX systems ......................................................................27

    Usage Notes ...........................................................................................................27Using XINFO ....................................................................................................... 29Stopping the Server on UNIX Systems .................................................................29

    Stopping the Server on WINDOWS Systems .......................................................29

    SEDIT Compatibility issues .......................................................................31

    XEDIT Compatibility Issues .................................................................................31

    SEDIT Differences .......................................................................................... 33ISPF/PDF Compatibility Issues ............................................................................ 36Customizing SEDIT (UNIX) ................................................................................ 39

    Using XED, SEDIT, PXED, PSEDIT or KEDIT .............................................39Using XEDIT or PDF .......................................................................................39

    Customizing SEDIT (WINDOWS) ...................................................................... 40Using the XEDIT-MODE, PDF-MODE and KEDIT-MODE Icons ................40

    Using the XEDIT-EXACTLY or PDF-EXACTLY Icons ................................40

  • 8/22/2019 SEDIT Manual

    4/746

    Table of Contents

    Page 3 SEDIT Reference Manual

    SEDIT Users Guide ...................................................................................41

    The 3270 Screen Interface .....................................................................................41Getting Started (UNIX) ........................................................................................ 44

    Starting SEDIT Within DYALOG APL ...........................................................44

    Starting SEDIT Under UNIX ...........................................................................44

    The UNIX Command Line Options ................................................................ 46Getting Started (WINDOWS) .............................................................................. 47

    Starting SEDIT .................................................................................................47

    SEDIT - XEDIT Mode .....................................................................................47SEDIT - PDF Mode ..........................................................................................47SEDIT - XEDIT Exactly ..................................................................................47

    SEDIT - PDF Exactly .......................................................................................47SEDIT - KEDIT Mode .................................................................................... 48

    The WINDOWS Command Line Options ....................................................... 49Using a UNIX Keyboard Layout ..................................................................... 50

    Exploring the SEDIT SCREEN ........................................................................... 51Moving Through a File ......................................................................................... 53Editing Multiple Files ............................................................................................54Using Function Keys on SUN Keyboards ............................................................ 56

    Using Function Keys on IBM, SiliconGraphics and PCs Keyboards .................. 62Using Function Keys on DEC/COMPAQ/HP TRUE64 station Keyboards ........ 68Using Function Keys on HP Keyboards ............................................................... 74

    Using Function Keys on WINDOWS .................................................................. 80Using Function Keys in KEDIT Mode ................................................................. 87Using Function Keys on ASCII Terminal Keyboards .......................................... 94

    Using the Keyboard .............................................................................................. 97

    Using the Default Buttons (UNIX) ....................................................................... 98Using the Default MenuBar (WINDOWS) ...........................................................98Using the DEFAULT Menu ............................................................................... 104

    Prefix Commands ............................................................................................... 105Single Prefix Commands ............................................................................... 106Double Prefix Commands .............................................................................. 114

    Overlaying Lines ........................................................................................... 118Writing Prefix Macros ........................................................................................ 119

    Using the Mouse on UNIX systems ................................................................... 123Making a Linear Selection ..............................................................................123

    The Sun Selection Related Keys .....................................................................123The Other Workstations Selection Related Keys ...........................................123Deleting the Selected Characters ....................................................................123Copying the Selected Characters ................................................................... 124

    Moving the Selected Characters .....................................................................124Searching for Selected Characters ................................................................. 125

    Making a Rectangular Selection .....................................................................125Selecting Whole Lines ....................................................................................125Moving Data to Other Windows .....................................................................125

    Using the Mouse in MOTIF Mode ..................................................................... 126Using the Mouse on WINDOWS Systems ......................................................... 127

    Making a Linear Selection ..............................................................................127The Selection Related Keys ............................................................................127

  • 8/22/2019 SEDIT Manual

    5/746

    Table of Contents

    SEDIT Reference Manual Page 4

    Deleting the Selected Characters ....................................................................127

    Copying the Selected Characters ................................................................... 128Searching for Selected Characters ..................................................................128

    Making a Rectangular Selection .....................................................................128Selecting Whole Lines ....................................................................................128

    Scrolling ......................................................................................................... 129Undoing .............................................................................................................. 130Using MAKE ...................................................................................................... 131

    Using ASCII Terminals ...................................................................................... 132Using INTERNAL Macro Commands ............................................................... 133

    Variable Substitution ......................................................................................133Using EXTERNAL Macro Commands (UNIX Only) ....................................... 134

    Using an Interpreted Language .......................................................................134Using the C Language (UNIX Only) ............................................................. 138

    Using S/REXX Macro Commands ..................................................................... 142

    Using EXTRACT .......................................................................................... 144

    Using the BATCH Option .................................................................................. 146UNIX Examples ..............................................................................................147

    WINDOWS Examples ....................................................................................148

    SEDIT Command Reference Guide ........................................................149

    Variable Substitution ...........................................................................................149Avoiding Variable Substitution .......................................................................... 150ACCess - Add Directory To the Path................................................................. 151

    Add - Add Lines ................................................................................................. 152ALl - Global Selective Line Editing................................................................... 153

    ALT - Change The Number of Alterations ........................................................ 154APL - Pass a Command to APL ......................................................................... 154ARBchar - Set Arbitrary Character .................................................................... 155

    AUTOBin - Auto-Binary Feature ....................................................................... 156AUTOExp - Auto-Expand Feature ..................................................................... 156

    AUTOI - Auto-Indent Feature ............................................................................ 157AUtosave - Auto-Save Feature........................................................................... 158

    BACKUP - Set Backup Mode ............................................................................ 158BAckward - Scroll Backward............................................................................. 159BEEP - Set Beep Mode ...................................................................................... 159

    BInary - Set Binary Mode .................................................................................. 160

    Bottom - Bottom of File ..................................................................................... 161BOUNDS - Set the Edit Boundaries .................................................................. 161

    BUILTIN - Process a Built-in Command ........................................................... 161BUtton - Create Button....................................................................................... 162CANcel (XEDIT MODE)- Abandon Files ......................................................... 162

    CANcel (ISPF MODE)- Cancel Edit Changes ................................................... 162CAppend - Append Text .................................................................................... 163

    CAPS - Control Automatic Character Conversion............................................. 164CASE - Case Respect ......................................................................................... 165CD - Change Directory....................................................................................... 166

    CDElete - Delete Characters .............................................................................. 167CEnter - Center Text .......................................................................................... 168

  • 8/22/2019 SEDIT Manual

    6/746

    Table of Contents

    Page 5 SEDIT Reference Manual

    CENTER_End - End Connection with Codecenter............................................ 169

    CENTER_Init - Initialize Connection with CodeCenter.................................... 170CENTER_Send - Send Command to CodeCenter ............................................. 171

    CFirst - Move Column Pointer ........................................................................... 172Change (XEDIT MODE) - Change String......................................................... 173

    Change (ISPF MODE)- Change String .............................................................. 175CInsert - Insert Characters.................................................................................. 178CLAst - Move Column Pointer .......................................................................... 179

    CLEARErrors - Clear Compiling Errors ............................................................ 179CLocate - Locate Characters .............................................................................. 180

    CLOSEConsole - Close the Console.................................................................. 181CMDline - Set the Command Line Position ...................................................... 181

    CN - Change Name String.................................................................................. 182COLor - Set Color .............................................................................................. 184COMmand - Execute a Command ..................................................................... 191

    COMPIle - Compile a Program.......................................................................... 192

    COMPLete - File Name Completion.................................................................. 196COMPRess - Compress Data ............................................................................. 197

    COpy (XEDIT MODE) - Copy File Lines ......................................................... 198COpy (ISPF MODE) - Copy Data ..................................................................... 199COUnt - Count String Occurrences.................................................................... 200

    COVerlay - Selectively Replace Characters....................................................... 202CREAte - Create a New File .............................................................................. 203CReplace - Replace Characters .......................................................................... 204

    CTags - Use a Tags File ..................................................................................... 205CTLCHAR - Define Control Character ............................................................. 207

    CURLine - Change Current Physical Line......................................................... 209CURsor - Move Cursor ...................................................................................... 210C_APLStop - Reverse APL Stop Setting ........................................................... 211

    C_APLTrace - Reverse APL Trace Setting ........................................................ 211C_Dup - Duplicate Cursor Line ......................................................................... 212

    C_ENDCurl - Goto End of Current Line ........................................................... 212C_ENDLine - Goto End of Cursor Line ............................................................. 212

    C_ENDS - End Selection ................................................................................... 212C_ENDSAll - End Selection at End of Line ...................................................... 213C_ENDSR - End Rectangular Selection ............................................................ 213

    C_EXT - Extend Field ........................................................................................ 213C_LINEAdd - Add Line..................................................................................... 214C_LINEDel - Delete Line .................................................................................. 214

    C_SCRH - Split Screen Horizontally ................................................................. 214C_SCRJ - Unsplit Screen ................................................................................... 214C_SCRV - Split Screen Vertically ..................................................................... 215

    C_SPlit - Split/Join Lines ................................................................................... 215C_STARTLine - Goto Start of Cursor Line ....................................................... 215

    C_STARTS - Start Selection .............................................................................. 216DACCess- Add Directory to the CDPATH........................................................ 217DELete (XEDIT MODE) - Delete Line............................................................. 218

    DELete (ISPF MODE) - Delete Line................................................................. 219DELAY - Display a String ................................................................................. 220

  • 8/22/2019 SEDIT Manual

    7/746

    Table of Contents

    SEDIT Reference Manual Page 6

    DFlist - Call Directory Editor ............................................................................. 220

    DISPlay - Set Display Range ............................................................................. 221Down/Next - Scroll Down.................................................................................. 222

    DUPlicat - Current Line Duplication ................................................................. 223DRELEase - Removes a Directory from the CDPATH ..................................... 224

    DY_All - Start the ALL Dialog Box .................................................................. 225DY_Exclude - Start the EXCLUDE Dialog Box ............................................... 226DY_FInd - Start the FIND Dialog box............................................................... 227

    DY_FILL - Start the FILL dialog box................................................................ 228DY_FOnt - Set the Dialog Font ......................................................................... 228

    DY_LASTFILES - Display Last Edited Files .................................................... 228DY_OPEN (UNIX) - Start the OPEN Dialog Box ............................................ 229

    DY_OPEN (WINDOWS) - Start the OPEN Dialog Box................................... 232DY_SAVE (UNIX) - Start the SAVE Dialog Box ............................................ 233DY_SAVE (WINDOWS) - Start the SAVE Dialog Box ................................... 236

    DY_SHow - Start the SHOW Dialog Box ......................................................... 237

    EDIT ................................................................................................................... 237EMSG - Display Text......................................................................................... 238

    END - End the Edit Session ............................................................................... 238ESCAPEdelay - Set Escape Sequence Time-out ................................................ 238EXClude (XEDIT MODE) - Global Selective Line Editing.............................. 239

    EXCLude (ISPF MODE) - Exclude Lines from Display ................................... 239EXIT / EEXIT - Exit .......................................................................................... 242EXTract - Retrieve Information ......................................................................... 243

    FBUtton - Set Directory Editor Buttons............................................................. 260FD - Change File Directory ................................................................................ 260

    FIle / FFile / KFIle / DOSFile - Save and Leave File ........................................ 261FILECONV - File Conversion ........................................................................... 262FILTer - Filter the Selection Contents ............................................................... 264

    FINd (XEDIT MODE) - Find a Starting String ................................................. 265FINd (ISPF MODE) - Find a Data String .......................................................... 266

    FINDUp - Find a Starting String........................................................................ 269FLAth - Directory Editor Permissions Display.................................................. 270

    FLDATE - Directory Editor Date Format .......................................................... 271FLFile - File + FLIST ......................................................................................... 271FFList - Call Directory Editor ............................................................................ 271

    Flist - Call Directory Editor................................................................................ 272FMACRO - Execute FLIST Macro .................................................................... 272FLOW - Reformats Text .................................................................................... 273

    Using the CURSOR Operand ........................................................................ 274Using the CURSOR_STRICT Operand .........................................................274

    FLPP - Directory Editor Parent Directory Display ............................................ 275

    FLQuit - AQUIT + F .......................................................................................... 275FN - Change Filename ........................................................................................ 275

    FOLLOW - Follow Links................................................................................... 276FONt - Change Font ........................................................................................... 276FORMAT - Set Formatting Parameters ............................................................. 277

    FORward - Scroll Forward................................................................................. 278FT - Change Filetype.......................................................................................... 279

  • 8/22/2019 SEDIT Manual

    8/746

    Table of Contents

    Page 7 SEDIT Reference Manual

    GET - Insert Data ............................................................................................... 280

    GET_Panel - Fullscreen User Interface.............................................................. 281GLOBALCase - Global File Case Handling...................................................... 285

    HAsh - Scan Directories ..................................................................................... 285Help - Fullscreen Help........................................................................................ 286

    HEX - Hexadecimal Target ................................................................................ 288HEXType - Hexadecimal Display...................................................................... 289HIghlight - Disable Highlight............................................................................. 291

    HIStory - Set the History Length Buffer ............................................................ 291HOme - Switch Cursor Position ........................................................................ 292

    IMPcmscp - Implicit UNIX or WINDOWS Execution ..................................... 292Input- Add a Text Line ....................................................................................... 293

    ISOConv - Set ISO Conversion .......................................................................... 293ISwitch - Switch Between files .......................................................................... 293KEEPBLanks - Trailing Blanks Removal .......................................................... 294

    KEYboard - Redefine Keyboard ........................................................................ 295

    Using MKTRANS ..........................................................................................296LASTFiles - Set the LASTFILES Parameters ................................................... 298

    LASTLorc - Set LASTLORC Buffer ................................................................. 298LEft - Scroll Left ................................................................................................ 299LEFTAdjust - Left-Adjusting Text .................................................................... 300

    LIMIT - Set File Size Limit ............................................................................... 301Large Files support .........................................................................................301

    LINECol ............................................................................................................. 301

    LINENd - Separator Change .............................................................................. 302LIsten - Listen for External Commands ............................................................. 303

    Locate (XEDIT MODE) - Locate a Target ........................................................ 304Locate (ISPF MODE) - Locate a Line ............................................................... 307LOWercas - Translate Into Lowercase............................................................... 308

    LRecl - Set Record Length................................................................................. 309MACRO - Execute a Macro ............................................................................... 310

    MAN - Display UNIX Reference Manual Pages ............................................... 310MARgins - Set Text Margins ............................................................................. 311

    MAtch - Match Delimiters ................................................................................. 312MBUtton - Create a Menu Button...................................................................... 313MENu - Create a Menu ...................................................................................... 314

    MENUBar - Create a Menubar........................................................................... 316MErge - Merge Two Set of Lines....................................................................... 318MESsagesdir....................................................................................................... 320

    METAKey - Set the Meta Key ........................................................................... 320MODE - Set Various Modes .............................................................................. 322MOUSEMode - Set Mouse Buttons ................................................................... 326

    MOve - Move File Lines .................................................................................... 327MSG - Display Text ........................................................................................... 328

    N - Goto Nth Line ............................................................................................... 328NEXTError - Error Scanning ............................................................................. 329NEXTWord - Cursor Moving to Next Word ..................................................... 329

    NFind - Find a Missing Starting String .............................................................. 330NFINDUp - Find a Missing Starting String ....................................................... 330

  • 8/22/2019 SEDIT Manual

    9/746

    Table of Contents

    SEDIT Reference Manual Page 8

    NIS - Use NIS Users Database........................................................................... 331

    NISG - Use NIS Groups Database ..................................................................... 331NUMber / NUMBER_Screen - Display File Line Numbers .............................. 332

    PENDing - Update the Pending List .................................................................. 333PGDown - Scroll Down ..................................................................................... 334

    PGUp - Scroll up ................................................................................................ 334POINT - Assign a Symbolic Name .................................................................... 335POWerinput - Set Power Input Mode ................................................................ 336

    PREfix/ PREFIX_Screen - Change Prefix Mode............................................... 339PREServe - Settings Preservation ...................................................................... 340

    PREVWord - Cursor Moving to Previous Word ................................................ 341PRINTFile (UNIX) - Print a File Hardcopy....................................................... 342

    PRINTFile (WINDOWS) - Print a File Hardcopy............................................. 343PRINTScreen (UNIX) - Print a Screen Hardcopy ............................................. 344PRINTScreen (WINDOWS) - Print a Screen Hardcopy.................................... 345

    PRompt - Prompt user ........................................................................................ 345

    PUT - Save Data................................................................................................. 346PUTD - Save Data .............................................................................................. 347

    PURge - Clear Macros........................................................................................ 348PWD/W - Display Current Directory ................................................................. 348Query - Query About Editing Options ............................................................... 348

    QUIT / AQUIT / PQUIT / QQuit - Abandon File.............................................. 349RChange (XEDIT MODE) - Regular Expression Change................................. 350RChange (ISPF MODE) - Repeat Last Change ................................................. 351

    READ - Place Terminal Information in the STACK ......................................... 352READScreen - Read User Action ...................................................................... 355

    RECYCLE - Use the Recycle Bin ...................................................................... 356REDo - Cancel Last Undo .................................................................................. 356REFRESH - Screen Update ................................................................................ 356

    RELEase - Removes a Directory From the PATH............................................. 357RELoad - Automatic Reload Feature ................................................................. 358

    REPEat - Repeat a Command ............................................................................ 359REPEATDelay - Set Auto-repeat Time-out ....................................................... 360

    Replace (XEDIT MODE) - Replace Current Line ............................................. 360Replace (ISPF MODE)- Replace Data ............................................................... 361RESERved - Reserve a Specified Line on the Screen........................................ 362

    RESet - Reset the Data Display.......................................................................... 364RESTore - Settings Retrieval ............................................................................. 364RFlist - Call Directory Editor ............................................................................. 365

    RFINd - Repeat Last Find .................................................................................. 365RIght - Scroll Right ............................................................................................ 365RIGHTAdjust - Right-adjusting Text................................................................. 366

    RTLF - Specific display mode for left to right fonts (Windows) ....................... 367RW - Enable Read/Write Mode ......................................................................... 367

    R/ - Regular Expression Search.......................................................................... 368R-/ - Regular Expression Search ........................................................................ 371SABER_End - End Connection with Saber-C ................................................... 371

    SABER_Init - Initialize Connection with Saber-C ............................................ 372SABER_Send - Send Command to Saber-C...................................................... 373

  • 8/22/2019 SEDIT Manual

    10/746

    Table of Contents

    Page 9 SEDIT Reference Manual

    SAve / SSave / KSAve/ DOSSave - Save File ................................................... 375

    SAVECLEARUNDO - Set Clear Undo Status .................................................. 375SCALe / SCALE_Screen - Set Scale Line ......................................................... 376

    SChange - Selective String Change.................................................................... 377SCKeys - Selective Change Confirmation Keys................................................ 379

    SCN - Selective Name String Change................................................................ 380SCOpe - Set Selective Editing Scope................................................................. 382SCReen - Split Screen ........................................................................................ 383

    SCROllbar - Set Scrollbar .................................................................................. 385SELect - Set Selection Level.............................................................................. 386

    SELECTall - Set Selection Level on All Lines.................................................. 387SEP - Separator Change ..................................................................................... 388

    SEt - Set Function Keys ..................................................................................... 389SETEnv - Set Environment Variable ................................................................. 398SETP - Set Display String .................................................................................. 398

    SHAdow - Set Selective Editing Display Mode ................................................ 399

    SHBlank - Show Last Trailing Blank ................................................................. 399SHEll - Execute a Shell Command .................................................................... 400

    SHELLEXT - Set Default Execute Shell filetype (Windows) ........................... 400SHift - Shift Lines .............................................................................................. 401SHOw - Global Selective Line Editing .............................................................. 402

    SHOWCdpath - Displays the Accessed Directories ........................................... 402SHOWHistory - Show History ........................................................................... 402SHOWPath - Displays the Accessed Directories ............................................... 403

    SOrt, NSort - Sort a File ..................................................................................... 404SORTRing - Sort the Ring ................................................................................. 405

    SOS - Screen Operation Simulation ................................................................... 406SPAN - Multiple Lines Search........................................................................... 408SPELL - Spelling Checker ................................................................................. 409

    SPELL_Add - Update Private Dictionary .......................................................... 409SPELL_Next - Search for Next Misspelled Word ............................................. 410

    SPLTJOIN - Split/Join Lines ............................................................................. 410SRChange - Selective Regular Expression Change ........................................... 411

    STAck - Stack Lines........................................................................................... 413STAMpdelay - Discrepancy Reload Setting ...................................................... 414STATUS (Macro) - Displays All Settings ......................................................... 415

    STAY - Current Line Move ............................................................................... 415STop - Set APL stop........................................................................................... 416STReam - Set Stream Status .............................................................................. 416

    SWitch - Switch Between Files .......................................................................... 417SYNonym - Set a Synonym ............................................................................... 418SYNTax - Set Syntax Coloring .......................................................................... 419

    S_COpy - Copy a Selection................................................................................ 422S_CUt - Cut a Selection ..................................................................................... 422

    S_Find - Find a Selection ................................................................................... 422S_Help - Shows Help About a Selected Item ..................................................... 423S_Lower - Translate Into Lowercase ................................................................. 423

    S_LShift - Shift Left from Selection .................................................................. 423S_MAN - Display Selected UNIX Reference Manual Pages ............................ 424

  • 8/22/2019 SEDIT Manual

    11/746

    Table of Contents

    SEDIT Reference Manual Page 10

    S_Paste - Retrieve a Selection............................................................................ 425

    S_PRsh - Use Shelf When Getting a Primary Selection Request ...................... 426S_RShift - Shift Right from Selection ................................................................ 426

    S_Set - Set Selection .......................................................................................... 427S_Upper - Translate into Uppercase................................................................... 428

    S_Xed - Edit a Selected File ............................................................................... 428TABExp - Expand Tabulations .......................................................................... 429TABLine / TABLINE_Screen - Set Tabline...................................................... 430

    TABSet - Set Tabulations................................................................................... 431TOolbar - Set Toolbar ........................................................................................ 432

    TOP - Top of File ............................................................................................... 433TRAce - Set APL Trace ..................................................................................... 433

    Tree - Start the TREE Editor.............................................................................. 434TREEScanlevel - Set TREE Scanning Level ..................................................... 434TRUnc - Set Truncation Column ....................................................................... 435

    UNButton - Remove Button............................................................................... 436

    UNDo - Cancel Last File Modification .............................................................. 436UNSetenv - Remove Environment Variable ...................................................... 436

    UP- Scroll Up ..................................................................................................... 437UPPercas - Translate Into Uppercase ................................................................. 438VARblank - Ignore Successive Blanks .............................................................. 439

    Verify / VERIFY_Screen - Set Columns ........................................................... 440VERIFY_Save / VERIFY_SSave / VERIFY_KSave ........................................ 442VIsible - Count Visible Lines............................................................................. 443

    WHeel - Set Mouse Wheel Parameters .............................................................. 443WIndows - Execute a WINDOWS Command ................................................... 443

    WINSHZRinktofit - Window Auto-Size Feature ............................................... 444WRap - Wrap Around Feature ........................................................................... 444WRTL - Write Left to Right ............................................................................... 445

    XBin - Edit Binary Files ..................................................................................... 445XEDit - Edit New Files ...................................................................................... 446

    XF - Edit an APL Object.................................................................................... 447XCSHell - Execute a Shell Command ............................................................... 448

    XKB - Edit Files with Trailing Blanks ............................................................... 448XKSHell - Execute a Shell Command ............................................................... 449XSHell - Execute a Shell Command .................................................................. 449

    XSHELLMax - Set Displayed XSHELL Files Limit......................................... 450XSHOwhistory - Show History In Fullscreen Mode ......................................... 450XTESTChars - Set the Font Testing Mode ........................................................ 451

    Zone / ZONE_Screen - Set Zone........................................................................ 452\ - Locate a Name String..................................................................................... 453-\ - Locate a Name String ................................................................................... 454

    ? - Display Last Command ................................................................................. 454?I - Display Last Command................................................................................ 455

    = - Repeat Last Command .................................................................................. 455# - Comments ..................................................................................................... 455

    SEDIT Text Formatting Facilities ...........................................................457Margins ................................................................................................................457

  • 8/22/2019 SEDIT Manual

    12/746

    Table of Contents

    Page 11 SEDIT Reference Manual

    Formatting Text ...................................................................................................457

    Wordwrap Feature ...............................................................................................457

    The Directory Editor FLIST ....................................................................459

    What Is It For? .....................................................................................................459

    Using "Control-F" ................................................................................................461Large Files support ..............................................................................................461Getting Started .....................................................................................................461

    Displaying Owner/Group/Timestamp ................................................................ 463Using the Function Keys .................................................................................... 464

    Using the Buttons ............................................................................................... 467Mouse Editing a File ...........................................................................................468

    Switching Permissions Display ...........................................................................468Passing Commands ............................................................................................. 471

    The Built-in Commands .................................................................................471

    The Non-built-in Commands ......................................................................... 477

    Overriding a Built-in Command .....................................................................477Using S/REXX Macros Within FLIST .......................................................... 478

    The Tree Editor .........................................................................................481

    Getting Started .....................................................................................................481Using the Mouse ................................................................................................. 483Using the Buttons ................................................................................................484

    Using the Function Keys .....................................................................................486Changing the Default Printer on UNIX Systems ................................................487

    Running SEDIT With CodeCenter .........................................................489

    Using S/REXX ...........................................................................................493

    Starting S/REXX on UNIX Systems ...................................................................493Explicit Execution ..........................................................................................493

    Automatic Execution ......................................................................................493Starting S/REXX on WINDOWS Systems .........................................................494

    Explicit Execution ..........................................................................................494

    Choosing between srexx.exe and wsrexx.exe .................................................494Automatic Execution ......................................................................................494

    Using the WINDOWS Explorer .....................................................................495Compiling a Program ..........................................................................................495S/REXX Implementation .....................................................................................495

    S/REXX Extensions ............................................................................................495Static Scoping .................................................................................................495Dynamic Memory Allocation ........................................................................ 497

    The Operators Extensions ...............................................................................497Important Note for Mainframe Users .............................................................497

    Logical Operators .......................................................................................... 498Dynamic Loading on UNIX Systems ............................................................ 499Using OPTION NOLOAD .............................................................................501

    Setting Default Options for UNIX or WINDOWS REXX Programs ............502

    Setting Default Options for SEDIT REXX Macros .......................................502Dynamic Loading on WINDOWS Systems .................................................. 503

  • 8/22/2019 SEDIT Manual

    13/746

    Table of Contents

    SEDIT Reference Manual Page 12

    Setting Default Options for WINDOWS REXX Programs ............................505

    Extended PROCEDURE EXPOSE ............................................................... 506Extended LEAVE and ITERATE .................................................................. 507

    Using Backquotes ...........................................................................................507Using { and } ..................................................................................................507

    Using Bracket Indexing ................................................................................. 508Using S/REXX within SEDIT .............................................................................509

    S/REXX New or Extended Instructions ..................................................511

    ADDRESS (UNIX) - Set Destination of Commands......................................... 512

    ADDRESS (WINDOWS) - Set Destination of Commands ............................... 513Using UNIX Shells on WINDOWS ...............................................................513

    CD - Change Directory....................................................................................... 514DESBUF - Clear Stack ....................................................................................... 514DO - Controlled Loop ........................................................................................ 515

    DROPBUF - Remove Stack ............................................................................... 516

    EXECIO - Input/Output Operations................................................................... 517GLOBALV - Share Variables ............................................................................ 523

    LOWER - Lower Case Translation .................................................................... 527MAKEBUF - Create Stack ................................................................................. 527OPTION - Set Various Options.......................................................................... 528

    PARSE - Parsing ................................................................................................ 529SAYN - Terminal Output ................................................................................... 530SAYR - Terminal Output ................................................................................... 530

    SAYX - Displayed Execution ............................................................................ 531SENTRIES - Query Stack .................................................................................. 531

    TRACE - Debug Setting..................................................................................... 532UPPER - Upper Case Translation ...................................................................... 534UPPERW - Word Upper Case Translation ........................................................ 534

    S/REXX New or Extended Built-in Functions .......................................535

    ACOS - Arc Cosine ............................................................................................ 535ActivateKeyboardLayout - Switches to an input locale identifier (Windows Only)

    535ARCH - Get Hardware Information ................................................................... 535

    ARG - Returns Argument String ........................................................................ 535ASIN - Arc Sine ................................................................................................. 536

    ATAN - Arc Tangent .......................................................................................... 536CHANGE - Change String ................................................................................. 536CHARIN - Read Character Input Stream........................................................... 537CHDIR - Change Directory................................................................................ 538

    CLEAR or CLS - Clear the Screen ..................................................................... 538CLOSE_CONS - Close a Console ..................................................................... 538

    CONCAT - Concatenate Files............................................................................ 539COS - Cosine ...................................................................................................... 539COMMA - Add commas to a numerical string .................................................. 539

    CP or COPY - Copy Files .................................................................................. 539

    CPUID - Workstation CPU Identifier ................................................................ 540CSH - Pass UNIX Command ............................................................................. 540

  • 8/22/2019 SEDIT Manual

    14/746

    Table of Contents

    Page 13 SEDIT Reference Manual

    CUSERID, USERID - Get Userid ...................................................................... 540

    CVTAILS - Get Active Stems Tails................................................................... 541CWD, GETCWD, GETWD - Get Current Directory ......................................... 541

    C2O - Character to Octal .................................................................................... 541DATE - Get Current Date ................................................................................... 541

    DEL or RM - Delete Files .................................................................................. 542DIR or LS - List Files ......................................................................................... 542DY_ASCL - Add a Set of Strings to a Scrolled List .......................................... 543

    DY_BEEP - Sound the Alarm ............................................................................ 543DY_BUTTON - Make a Dialog Button Item ..................................................... 543

    DY_BUTTON_COLOR - Change a Button Dialog Item Color ........................ 544DY_CH - Make a Choice Dialog Item ............................................................... 544

    DY_CH_COLOR - Change a Choice Dialog Item Color .................................. 545DY_DESTROY - Destroy a Dialog Box ............................................................ 545DY_DSCL - Remove a Set of Strings from a Scrolled List ............................... 545

    DY_END - End a Dialog Box............................................................................ 546

    DY_FOCUS - Give a Dialog Input Item the Keyboard Focus........................... 547DY_FONT - Set the Dialog Font ....................................................................... 547

    DY_HEADER - Set the Dialog Box Header ...................................................... 547DY_INPUT - Make a Dialog Input Item............................................................ 548DY_INPUT_COLOR - Change an Input Dialog Item Color ............................. 548

    DY_LABEL - Make a Dialog Label Item.......................................................... 549DY_LABEL_COLOR - Change a Label Dialog Item Color ............................. 549DY_MAP - Map a Dialog Box ........................................................................... 549

    DY_OPEN (UNIX) - Displays the Contents of a Directory .............................. 550DY_FOLDER (WINDOWS) - Browses for a Folder ....................................... 553

    DY_OPEN (WINDOWS) - Displays the Contents of a Directory .................... 554DY_PRINTER - Set the Default Printer ............................................................ 554DY_PSCL - Set the First Displayed String ........................................................ 554

    DY_REFRESH - Redraw the Dialog Box .......................................................... 555DY_RSCL - Replace a String in a Scrolled List ................................................ 555

    DY_SCH - Set a Choice Value .......................................................................... 555DY_SINPUT - Set a Dialog Input Item Value ................................................... 555

    DY_SCL - Make a Scrolled List Dialog Item.................................................... 556DY_SCL_COLOR - Change a Scrolled List Dialog Item Color ....................... 560DY_SLABEL - Set a Dialog Label Item Value ................................................. 560

    DY_SSCL - Select or Unselect a String Within a Scrolled List ........................ 560DY_START - Start a Dialog Box ...................................................................... 560DY_STG - Set a Dialog Toggle Value............................................................... 561

    DY_TG - Make a Dialog Toggle........................................................................ 562DY_TG_COLOR - Change a Toggle Dialog Item Color .................................. 563DY_UNMAP - Unmap a Dialog Box ................................................................ 563

    DY_VINPUT - Get a Dialog Input Item Value .................................................. 563DY_VCH - Get a Dialog Choice Value ............................................................. 563

    DY_VSCL - Retrieve a Scrolled List Ranks and Contents of the Selected Strings 564DY_VTG - Get a Dialog Toggle Item Value ..................................................... 564DY_WARP - Set Mouse Handling ..................................................................... 564

    EXEC - Pass UNIX Command Directly ............................................................ 564EXECV - Pass UNIX Program Directly ............................................................ 565

  • 8/22/2019 SEDIT Manual

    15/746

    Table of Contents

    SEDIT Reference Manual Page 14

    EXTERNALS - Pending Input ........................................................................... 565

    FD - Get File-Directory...................................................................................... 566FILECONV - UNIX or WINDOWS File Conversion ....................................... 566

    FLFILES - Get FLIST Files ............................................................................... 566FN - Get Filename .............................................................................................. 566

    FOLLOW - Follow Symbolic Links .................................................................. 567FORK - Spawn a New Process........................................................................... 568FT - Get Filetype ................................................................................................ 569

    FWC - Format With Comma .............................................................................. 569GetAdaptersInfo - Get Free Disk Space (Windows Only)................................. 570

    GETDISKSPACE - Get Free Disk Space .......................................................... 571GETENV - Get Environment Variable .............................................................. 572

    GETFILE - Get File Content .............................................................................. 572GETPID - Process Identifier .............................................................................. 572HOSTNAME - Workstation Hostname .............................................................. 572

    INDEX - Find string ........................................................................................... 572

    ISMAIN - Determines if routine is MAIN one .................................................. 572JUSTIFY - Justify String .................................................................................... 573

    KILL - Terminate a Process ............................................................................... 574KSH - Pass UNIX Command ............................................................................. 574LINEIN, LINEOUT - Input / Output ................................................................. 574

    LN - Make Hard or Symbolic Links to File ....................................................... 576MKDIR - Make a Directory ............................................................................... 576MKLISTFILES - Group a list of files ................................................................ 576

    MV or RENAME - Rename a File ..................................................................... 577OPEN_CONS - Open a Console ........................................................................ 577

    PARG - Parse Argument .................................................................................... 578POS - Find string................................................................................................ 580QPID - Query Process Death .............................................................................. 580

    RCHANGE - Change String using regular expressions ..................................... 580REGISTRY_DEL - Delete REGISTRY Key Contents ...................................... 580

    REGISTRY_GET - Retrieve REGISTRY Key Contents .................................. 582REGISTRY_KEYS - REGISTRY Subkeys Enumeration ................................. 583

    REGISTRY_SET - Set REGISTRY Key Contents ........................................... 585REGISTRY_VALUES - REGISTRY Values Enumeration .............................. 586RM / DEL / RECYCLE - Delete Files............................................................... 587

    RMDIR - Delete a Directory .............................................................................. 587SCRIPT - Record Session .................................................................................. 587SERVICE_CREATE - Create a Service ............................................................ 588

    SERVICE_DELETE - Delete a Service ............................................................. 588SERVICE_STOP - Stop a Service ..................................................................... 589SERVICE_START - Start a Service .................................................................. 589

    SERVICE_STATUS - Status of a Service ......................................................... 589ShellExecute - Performs an operation on a specified file (Windows only) ....... 590

    SHGetKnownFolderPath - Retrieves the full path of a known folder (Windows only)591SETENV, PUTENV - Set Environment Variable.............................................. 592

    SIN - Sine ........................................................................................................... 592SLEEP - Suspend Execution .............................................................................. 592

  • 8/22/2019 SEDIT Manual

    16/746

    Table of Contents

    Page 15 SEDIT Reference Manual

    SockAccept - Accept an Incoming Request ....................................................... 592

    SockClose - Close a Socket ................................................................................ 592SockBind - Bind a Socket .................................................................................. 593

    SockConnect - Connect a Socket ....................................................................... 594SockDropFuncs - Compatibility Function ......................................................... 595

    SockGetHostByAddr - Search for Information for a Host ................................. 595SockGetHostByName - Search for Information for a Host ................................ 596SockGetHostId - Get the Dot Address of the Host ............................................. 597

    SockGetPeerName - Get the Name of the Connected Peer ................................ 597SockGetSockName - Get the Current Socket Name .......................................... 598

    SockGetSockOpt - Get Socket Options .............................................................. 599SockInit - Compatibility Function ...................................................................... 600

    SockIoctl - Perform Special Operations on Socket ............................................ 600SockListen - Listen for Incoming Requests ....................................................... 600SockLoadFuncs - Compatibility Function ......................................................... 601

    SockPSock_Errno - Last Error Code .................................................................. 601

    SockRecv - Receive Data ................................................................................... 601SockRecvFrom - Receive Data .......................................................................... 602

    SockSelect - Monitor Sockets ............................................................................ 603SockSend - Send Data ........................................................................................ 604SockSendTo - Send Data.................................................................................... 605

    SockSetSockOpt - Set Socket Options............................................................... 606SockShutDown - Close a Socket........................................................................ 607SockSocket - Create a Socket ............................................................................. 607

    SockSoClose - Close a Socket ............................................................................ 608SockSock_Errno - Last Error Code .................................................................... 608

    SockVersion - Version Number of Socket Library ............................................ 608SORT - Sort a List.............................................................................................. 609STATE / LSTATE - Query File State................................................................ 610

    STIME - Set System Time ................................................................................. 611STREAM - Compatibility Function ................................................................... 611

    SUBDIRS - Find Subdirectories ........................................................................ 611SysCls - Clear the Screen ................................................................................... 611

    SysFileDelete - Delete File................................................................................. 612SysFileSearch - Scan File ................................................................................... 612SysFileTree - Scan Directory ............................................................................. 613

    SysGetKey - Read Character Input Stream ........................................................ 615SysMkDir - Delete a Directory ........................................................................... 615SysRmDir - Delete a Directory .......................................................................... 615

    SysSearchPath - Search Files in Path ................................................................. 616SysSetPriority - Change the Priority .................................................................. 616SysSleep - Suspend Execution ........................................................................... 617

    SYSTEM - Passes string to SHELL (Unix Only) .............................................. 618SysTempFileName - Make a Unique File Name ............................................... 618

    SysVersion - Operating System Description ...................................................... 618TAN - Tangent ................................................................................................... 619TBADD - Insert Table Line ............................................................................... 619

    TBCLOSE - Close Current Table ....................................................................... 619TBDEL - Delete Table Line ............................................................................... 619

  • 8/22/2019 SEDIT Manual

    17/746

    Table of Contents

    SEDIT Reference Manual Page 16

    TBDISPL - Display Table .................................................................................. 619

    TBGET - Get Table Line .................................................................................... 620TBOPEN - Open a Table .................................................................................... 620

    TBPUT - Update Table Line .............................................................................. 620TBSAVE - Save Table ....................................................................................... 621

    TCSH - Pass UNIX Command ........................................................................... 621TEE - Pass UNIX Command .............................................................................. 621UNIX or SH - Pass UNIX Command ................................................................. 621

    UNSETENV - Remove Environment Variable .................................................. 622USLEEP - Suspend Execution ........................................................................... 622

    UTIME - Change File Timestamp ...................................................................... 622VALUE - Set or Retrieve a Variable .................................................................. 622

    VERSION- Windowing Identifier ...................................................................... 622WAITPID - Wait for a Process Termination...................................................... 623WINDOWS - Pass WINDOWS Command ....................................................... 623

    WIPE - Wipe Files.............................................................................................. 624

    XHOME - Installation Directory ........................................................................ 624

    S/REXX Dialog Management ..................................................................625

    OpenLook Specifics ............................................................................................625

    WINDOWS Specifics ..........................................................................................625

    S/REXX Dialog Management within SEDIT .........................................629

    S/REXX ISPF-like Tables ........................................................................635

    S/REXX Programming Interface ............................................................645

    Creating a New Address Environment ................................................................645ENV_RX - Initiate a Host Command Environment........................................... 646EXIT_RX - Cleans up and Exits ........................................................................ 648

    GETVAL_RX - Get an S/REXX Variable......................................................... 649PULL_RX - Extract External Data Queue Item................................................. 651

    PUSH_RX - Add a String on Top of the External Data Queue ......................... 653QUEUE_RX - Add a String to the External Data Queue................................... 654

    QUEUED_RX - Query External Data Queue Length........................................ 656RUN_RX - Run an S/REXX Program ............................................................... 658SETVAL_RX - Set an S/REXX Variable. ......................................................... 661

    STOP_RX - Stop an S/REXX Program. ............................................................ 663Adding Built-in Functions .................................................................................. 665

    Using the RXD Debugger .........................................................................669

    Entering RXD Explicitly .....................................................................................669

    Entering RXD Implicitly .....................................................................................669Setting Stops ........................................................................................................672

    Customizing RXD ...............................................................................................672Using the Function Keys ............................................................................... 675

    Appendix A: Keyboard Layouts ..............................................................677

    SUN Type 3 Keyboard 3270 Simulation Layout ................................................678SUN Type 4 Keyboard 3270 Simulation Layout ................................................679

  • 8/22/2019 SEDIT Manual

    18/746

    Table of Contents

    Page 17 SEDIT Reference Manual

    SUN Type 5 Keyboard Layout ............................................................................680

    SUN Keyboard Mapping .....................................................................................681IBM, Silicon Graphics and PCs Keyboard Mapping ..........................................683

    DEC/COMPAQ/HP TRUE64 Station Keyboard Mapping .................................685HP Keyboard Mapping ........................................................................................687

    WINDOWS Keyboard Mapping .........................................................................689Character Mode Terminals Mapping ...................................................................691

    Appendix B: Hardware String .................................................................693

    SEDIT Release Notes ................................................................................695

    The 3.60 File Editor Enhancements ....................................................................695New Commands ..............................................................................................695

    Miscellaneous .................................................................................................695The 3.60 Directory Editor Enhancements ...........................................................696The 3.60 Tree Editor Enhancements ...................................................................696

    The 4.0 File Editor Enhancements ..................................................................... 697New or Enhanced Commands ........................................................................697Miscellaneous .................................................................................................698

    The 4.0 Directory Editor Enhancements .............................................................699The 4.0 Tree Editor Enhancements .....................................................................699The 4.10 File Editor Enhancements ................................................................... 700

    New or Enhanced Commands ........................................................................700Miscellaneous .................................................................................................700

    The 4.10 Directory Editor Enhancements ...........................................................701

    The 4.10 Tree Editor Enhancements ...................................................................701The 4.20 File Editor Enhancements ................................................................... 702

    New or Enhanced Commands ........................................................................702Miscellaneous .................................................................................................702

    The 4.20 Directory Editor Enhancements .......................................................... 703

    The 4.20 Tree Editor Enhancements ...................................................................703The 4.30 File Editor Enhancements ................................................................... 704

    New or Enhanced Commands ........................................................................704Miscellaneous .................................................................................................704

    The 4.30 Directory Editor Enhancements .......................................................... 705The 4.30 Tree Editor Enhancements ...................................................................705The 4.40 File Editor Enhancements ................................................................... 706

    New or Enhanced Commands ........................................................................706Miscellaneous .................................................................................................706

    The 4.40 Directory Editor Enhancements ...........................................................707

    The 4.50 File Editor Enhancements ................................................................... 708New or Enhanced Commands ........................................................................708Miscellaneous .................................................................................................708

    The 4.50 Directory Editor Enhancements ...........................................................708The 4.50 Tree Editor Enhancements ...................................................................708

    The 4.60 File Editor Enhancements ................................................................... 709New or Enhanced Commands ........................................................................709Miscellaneous .................................................................................................709

    The 4.60 Directory Editor Enhancements ...........................................................709The 4.70 File Editor Enhancements ....................................................................709

  • 8/22/2019 SEDIT Manual

    19/746

    Table of Contents

    SEDIT Reference Manual Page 18

    New or Enhanced Commands ........................................................................709

    Miscellaneous .................................................................................................709The 4.70 Directory Editor Enhancements ...........................................................709

    The 4.70 Tree Editor Enhancements ...................................................................709The 4.80 File Editor Enhancements ....................................................................710

    New or Enhanced Commands ........................................................................710Miscellaneous .................................................................................................710

    The 4.80 Directory Editor Enhancements ...........................................................710

    The 5.00 File Editor Enhancements ....................................................................710New or Enhanced Commands ........................................................................710

    Miscellaneous .................................................................................................710The 5.00 Directory Editor Enhancements ...........................................................710

    .............................................................................................................................710

    S/REXX Release Notes .............................................................................711

    1.10 Enhancements ..............................................................................................711

    Enhanced Built-in Functions ..........................................................................711Miscellaneous .................................................................................................711

    1.20 Enhancements ..............................................................................................711New or Extended Instructions ........................................................................711New Built-in Functions ...................................................................................711

    Enhanced Built-in Functions ......................................................................... 712Miscellaneous .................................................................................................712

    2.00 Enhancements ..............................................................................................712

    New or Extended Instructions ........................................................................712New Built-in Functions ...................................................................................712

    Miscellaneous .................................................................................................7122.10 Enhancements ............................................................................................. 713New or Enhanced Built-in Functions .............................................................713

    Miscellaneous .................................................................................................7132.20 Enhancements ............................................................................................. 714

    New or Enhanced Built-in Functions .............................................................714Miscellaneous .................................................................................................714

    2.30 Enhancements ..............................................................................................714New or Enhanced Built-in Functions .............................................................714Miscellaneous ................................................................................................ 715

    2.40 Enhancements ..............................................................................................715

    New or Enhanced Built-in Functions .............................................................715Miscellaneous .................................................................................................717

    2.50 Enhancements ..............................................................................................717New or Enhanced Built-in Functions .............................................................717Miscellaneous .................................................................................................717

    2.60 Enhancements ..............................................................................................717New or Enhanced Built-in Functions .............................................................717

    Miscellaneous .................................................................................................7172.70 Enhancements ..............................................................................................718

    Miscellaneous .................................................................................................718

    2.80 Enhancements ..............................................................................................718New or Enhanced Instruction .........................................................................718

  • 8/22/2019 SEDIT Manual

    20/746

    Table of