Using The JED Editor and Navigation in Classic
Using The JED Editor and Navigation in Classic
1
Agenda
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
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
1 0 D e ce mb e r 2 0 0 4
5
Typing data
- Previous Line
-Next Line
1 0 D e ce mb e r 2 0 0 4
6
Go to Line 1
1 0 D e ce mb e r 2 0 0 4
7
Go to End Of program
9999
1 0 D e ce mb e r 2 0 0 4
8
Exit Without Saving
•EX
•EXIT
•Ctrl X
1 0 D e ce mb e r 2 0 0 4
9
Save And Exit
FI
1 0 D e ce mb e r 2 0 0 4
10
Save
FS
1 0 D e ce mb e r 2 0 0 4
11
Format Code
Before After
1 0 D e ce mb e r 2 0 0 4
12
Delete Current Line
DE
1 0 D e ce mb e r 2 0 0 4
13
Delete Next 5 Lines
DE5
1 0 D e ce mb e r 2 0 0 4
14
Replace First Occurrence On Current Line
R/old/new
1 0 D e ce mb e r 2 0 0 4
15
Replace First 3 Occurrences On Current Line
R/old/new/3
1 0 D e ce mb e r 2 0 0 4
16
Replace All Occurrences On Current Line
RU/old/new
1 0 D e ce mb e r 2 0 0 4
17
Replace First Occurrence On Next 3 Lines
R3/old/new
1 0 D e ce mb e r 2 0 0 4
18
Replace All Occurrences On Next 3 Lines
RU3/old/new
1 0 D e ce mb e r 2 0 0 4
19
Locate
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
• 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
Ctrl A
1 0 D e ce mb e r 2 0 0 4
23
Move To End Of Current Line
Ctrl E
1 0 D e ce mb e r 2 0 0 4
24
Delete A Word
Ctrl W
1 0 D e ce mb e r 2 0 0 4
25
Delete Till End Of Line Or Join
Ctrl K
1 0 D e ce mb e r 2 0 0 4
26
Delete Current Line
Ctrl D
1 0 D e ce mb e r 2 0 0 4
27
Insert Line Below Current Line
Ctrl L
1 0 D e ce mb e r 2 0 0 4
28
Locate Next Occurrence
Ctrl N
1 0 D e ce mb e r 2 0 0 4
29
Toggle Between Insert And Overwrite Mode
Ctrl O
1 0 D e ce mb e r 2 0 0 4
30
Redisplay Screen
Ctrl R
1 0 D e ce mb e r 2 0 0 4
31
Copy From Line Above
Ctrl T
1 0 D e ce mb e r 2 0 0 4
32
Defining Blocks
1 0 D e ce mb e r 2 0 0 4
33
Copy Block After Current Line
1 0 D e ce mb e r 2 0 0 4
34
Copy Block Before Current Line
1 0 D e ce mb e r 2 0 0 4
35
Move Block Before Current Line
1 0 D e ce mb e r 2 0 0 4
36
Move Block After Current Line
1 0 D e ce mb e r 2 0 0 4
37
Delete Block
1 0 D e ce mb e r 2 0 0 4
38
Copy Block After Current Line n Times
1 0 D e ce mb e r 2 0 0 4
39
Copy Block Before Current Line n Times
1 0 D e ce mb e r 2 0 0 4
40
Move Block After Current Line n Times
1 0 D e ce mb e r 2 0 0 4
41
Move Block Before Current Line n Times
1 0 D e ce mb e r 2 0 0 4
42
Execute jBASE/OS Command
!command
1 0 D e ce mb e r 2 0 0 4
43
Navigation In Classic
1 0 D e ce mb e r 2 0 0 4
44
Commit A Record
• 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
• 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
• 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
• 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
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
1 0 D e ce mb e r 2 0 0 4
51
To Sub Value A Field
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