0% found this document useful (0 votes)
29 views

Using The JED Editor and Navigation in Classic

The document provides an overview of using the JED editor and navigation in Classic. It describes commonly used commands in the JED editor to create, edit, format and navigate code as well as execute commands. It also discusses navigation within Classic applications using function keys and keystrokes to commit records, move between pages in a record and more.

Uploaded by

Toan Nguyen Dang
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Using The JED Editor and Navigation in Classic

The document provides an overview of using the JED editor and navigation in Classic. It describes commonly used commands in the JED editor to create, edit, format and navigate code as well as execute commands. It also discusses navigation within Classic applications using function keys and keystrokes to commit records, move between pages in a record and more.

Uploaded by

Toan Nguyen Dang
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 54

Using The JED Editor And Navigation In Classic

1
Agenda

• Introduction to the JED editor


• Commonly used JED Editor commands
• Navigation in Classic
• Additional Information – Commands that can be

executed at the jshell prompt

1 0 D e ce mb e r 2 0 0 4

2
JED Editor

• Page Editor
• Terminal independent
• Two types of commands
– Command Line
– Text Line

1 0 D e ce mb e r 2 0 0 4

3
Creating a record using JED

JED <file name> <record id>


Filename can be
– Hashed file
– Non hashed file

jsh….>JED TRG.BP FILE1

Command Line
Text Line
1 0 D e ce mb e r 2 0 0 4

4
Navigation from command line to text line and
vice versa

Command line to text line


Command line command : <line number>

Text line to command line


Text line command : Esc

1 0 D e ce mb e r 2 0 0 4

5
Typing data

Enter - To get to the next line

- Previous Line

-Next Line

- Move to the next char

- Move to the previous char

Backspace – Delete a character

1 0 D e ce mb e r 2 0 0 4

6
Go to Line 1

Command Line Command

1 0 D e ce mb e r 2 0 0 4

7
Go to End Of program

Command Line Command

9999

Works if program has less than 9999 lines

1 0 D e ce mb e r 2 0 0 4

8
Exit Without Saving

Command Line Command

•EX
•EXIT
•Ctrl X

1 0 D e ce mb e r 2 0 0 4

9
Save And Exit

Command Line Command

FI

1 0 D e ce mb e r 2 0 0 4

10
Save

Command Line Command

FS

1 0 D e ce mb e r 2 0 0 4

11
Format Code

Command Line Command - BI


Text Line Command - Ctrl + V

Before After

1 0 D e ce mb e r 2 0 0 4

12
Delete Current Line

Command Line Command

DE

1 0 D e ce mb e r 2 0 0 4

13
Delete Next 5 Lines

Command Line Command

DE5

1 0 D e ce mb e r 2 0 0 4

14
Replace First Occurrence On Current Line

Command Line Command

R/old/new

1 0 D e ce mb e r 2 0 0 4

15
Replace First 3 Occurrences On Current Line

Command Line Command

R/old/new/3

1 0 D e ce mb e r 2 0 0 4

16
Replace All Occurrences On Current Line

Command Line Command

RU/old/new

1 0 D e ce mb e r 2 0 0 4

17
Replace First Occurrence On Next 3 Lines

Command Line Command

R3/old/new

1 0 D e ce mb e r 2 0 0 4

18
Replace All Occurrences On Next 3 Lines

Command Line Command

RU3/old/new

1 0 D e ce mb e r 2 0 0 4

19
Locate

Command Line Command

L <chars>

1 0 D e ce mb e r 2 0 0 4

20
Repeat Locate On Next nn Lines

Lnn <chars>

1 0 D e ce mb e r 2 0 0 4

21
Move Around In Editor

Text Line Command

• Arrow Keys
• Page Up and Page Down

1 0 D e ce mb e r 2 0 0 4

22
Move To Start Of Current Line

Text Line Command

Ctrl A

1 0 D e ce mb e r 2 0 0 4

23
Move To End Of Current Line

Text Line Command

Ctrl E

1 0 D e ce mb e r 2 0 0 4

24
Delete A Word

Text Line Command

Ctrl W

1 0 D e ce mb e r 2 0 0 4

25
Delete Till End Of Line Or Join

Text Line Command

Ctrl K

1 0 D e ce mb e r 2 0 0 4

26
Delete Current Line

Text Line Command

Ctrl D

1 0 D e ce mb e r 2 0 0 4

27
Insert Line Below Current Line

Text Line Command

Ctrl L

1 0 D e ce mb e r 2 0 0 4

28
Locate Next Occurrence

Text Line Command

Ctrl N

Use after using L in Command Line

1 0 D e ce mb e r 2 0 0 4

29
Toggle Between Insert And Overwrite Mode

Text Line Command

Ctrl O

1 0 D e ce mb e r 2 0 0 4

30
Redisplay Screen

Text Line Command

Ctrl R

1 0 D e ce mb e r 2 0 0 4

31
Copy From Line Above

Text Line Command

Ctrl T

1 0 D e ce mb e r 2 0 0 4

32
Defining Blocks

Text Line Command

Ctrl G – Defines Start and End of Block

1 0 D e ce mb e r 2 0 0 4

33
Copy Block After Current Line

Text Line - Define Block


Command Line - CA

1 0 D e ce mb e r 2 0 0 4

34
Copy Block Before Current Line

Text Line - Define Block


Command Line - CB

1 0 D e ce mb e r 2 0 0 4

35
Move Block Before Current Line

Text Line - Define Block


Command Line - MB

1 0 D e ce mb e r 2 0 0 4

36
Move Block After Current Line

Text Line - Define Block


Command Line - MA

1 0 D e ce mb e r 2 0 0 4

37
Delete Block

Text Line - Define Block


Command Line - DB

1 0 D e ce mb e r 2 0 0 4

38
Copy Block After Current Line n Times

Text Line - Define Block


Command Line – CA<n>

1 0 D e ce mb e r 2 0 0 4

39
Copy Block Before Current Line n Times

Text Line - Define Block


Command Line – CB<n>

1 0 D e ce mb e r 2 0 0 4

40
Move Block After Current Line n Times

Text Line - Define Block


Command Line – MA<n>

1 0 D e ce mb e r 2 0 0 4

41
Move Block Before Current Line n Times

Text Line - Define Block


Command Line – MB<n>

1 0 D e ce mb e r 2 0 0 4

42
Execute jBASE/OS Command

Command Line Command

!command

Example : !jstat FBNK.CUSTOMER

1 0 D e ce mb e r 2 0 0 4

43
Navigation In Classic

• Can use the Function keys (if mapped)


• Use keystrokes

1 0 D e ce mb e r 2 0 0 4

44
Commit A Record

Awaiting Application Prompt

• Function Key – F5
• Keystroke
– Ctrl + V + <Enter>
– Ctrl + V V + <Enter>
– Ctrl + R + <Enter>

1 0 D e ce mb e r 2 0 0 4

45
Move To Next Page In Record

Awaiting Application Prompt / Within Record

• Function Key – F3
• Keystrokes
– Ctrl + F + <Enter>

1 0 D e ce mb e r 2 0 0 4

46
Move To Previous Page In Record

Awaiting Application Prompt / Within Record

• Function Key – F2
• Keystrokes
– Ctrl + B + <Enter>

1 0 D e ce mb e r 2 0 0 4

47
Move To The Last Page In Record

Awaiting Application Prompt

• Function Key – F4
• Keystrokes
– Ctrl + E + <Enter>

1 0 D e ce mb e r 2 0 0 4

48
Return To Awaiting Application Prompt

Within Record

• Function Key – F1
• Keystrokes
– Ctrl + U + <Enter>
– Ctrl + K + <Enter>

1 0 D e ce mb e r 2 0 0 4

49
Move To A Field Within Record

Awaiting Application Prompt

Field Number

Example:
7.1
3.1.2
8

1 0 D e ce mb e r 2 0 0 4

50
To Multi Value A Field

Go to the specific field and press

< ENTER Multi value before


> ENTER Multi value after

1 0 D e ce mb e r 2 0 0 4

51
To Sub Value A Field

Go to the specific field and press

( ENTER Multi value before


) ENTER Multi value after

1 0 D e ce mb e r 2 0 0 4

52
Additional Information - Commands At The
To Delete A Multi / Sub Value Field
jshell Prompt

•Go Uptoand
the Down
specific
Arrow
field Keys
and press
– Previous / Next
Command Executed
•–ENTER
Left and Right Arrow Keys – Move within current
command
• Ctrl A – Move to the start of the line
• Ctrl E – Move to the end of the line
• Ctrl W – Delete word
• Ctrl K – Clear till the end or join
• Ctrl D – Delete current line
• Ctrl O – Toggle Overwrite and Insert mode.

1 0 D e ce mb e r 2 0 0 4

53
54

You might also like