Title: Using TEDEDIT
1Using TEDEDIT
--------------------------------------------
B G S U F O C U S M A I N ME N
U -------------------------------------------- M
ove your cursor to the desired action
... ___________________________________________
Personal FOCEXEC member list
COMMON FOCEXEC member list
Department FOCEXEC member list
Create a new FOCEXEC
Options menu
Exit (or press F3
to exit)
Put your cursor on Create a new FOCEXEC
1-12
2Using TEDEDIT
---------------------------------------------
Please choose one of the following
__________________________________ ... Copy
existing FOCEXEC ...
Ted edit a new FOCEXEC
---------------------------------------------
1-13
3Using TEDEDIT
---------------------------------------------
Please type in a member name (or hit PF3 to
return) _____________________________
_______________ Member names must
1. Begin with an
alphabetic character. 2. Have a
length of 1-8 characters. 3.
Contain just alphabetic and/or numeric
symbols. ----------------------------
----------------- -------------------
Member name
___________________
-------------------
Type in a new member name
1-14
4Using TEDEDIT
FEXUSER(TED)
TOP
OF FILE - 9/01/02
JVEITCH - THIS IS MY
FIRST PRACTICE PROGRAM TABLE FILE EMPDATA
PRINT FIRSTNAME SALARY
BY DEPT
BY LASTNAME
WHERE DEPT IS 'MARKETING'
END
END OF FILE gt FILE
1-15
5Using TEDEDIT
FEXUSER(TED) SIZE5 LINE0
........1........2........3........4.... 0
0000 TOP OF FILE
00001 - 9/01/02 JVEITCH
00002 - THIS IS MY FIRST PRACTICE PROGRAM
00003 TABLE FILE EMPDATA
00004 PRINT FIRSTNAME SALARY
00005 BY DEPT
00006 BY LASTNAME
00007 WHERE DEPT IS 'MARKETING'
00008 END
00009 END OF FILE gt
1-16
6Using TEDEDIT
EDIT COMMANDS 00001 Line commands can be
placed over any position in the line
number gt Other commands go on the
command line Adding lines 00001 I2002 This
will add two lines below the line you type
command on gt A4 typed on the command line
after gt will insert 4 lines at top of
screen
1-17
7Using TEDEDIT
Moving Text -- p revious f ollowing
0p001 Indicates Preceding moved or copied
line(s) will be positioned before this
line 0f002 Indicates Following moved or
copied line(s) will be positioned after this
line
1-18
8Using TEDEDIT
Moving Text -- Delete and Duplicate 0d001
Deletes current line dd001 Deletes a block of
text 00002 00003 dd004 0"001 Duplicates
current line ""001 Duplicates a block of
text 00002 00003 ""004
1-19
9Using TEDEDIT
Moving Text -- Copy and Locate 0c001 Copies
current line cc001 Copies a block of
text 00002 00003 cc004 Locate Command gt L
- /string/ Locates the specified string.
The default search direction is forward use a
hyphen(-) to perform a backward search
1-20
10Using TEDEDIT
Moving Through a File 0/001 Makes this line the
current line F7 Moves up a page F8 Moves
down a page gt Top Goes directly to first
line gt Bottom Goes directly to last line
gt Up n Moves n lines toward Top Of
File gt Down n Moves n lines toward End Of
File gt Repeats last action
performed gt ? Recalls the last command
issued
1-21
11Using TEDEDIT
Ending a TED Session F3 Exit TED and save
revisions gt FILE Exit TED and save
revisions F15 (shift F3) Exit TED but does
not save revisions gt QQUIT Exit TED
but does not save revisions gt
SAVE Saves revisons but does not exit TED.
Use this to periodically save when making
many changes
1-22
12Using TEDEDIT
Testing your program Syntax checker gt RUN
This is to check syntax. Will not catch
all errors. Do not use if allocating a
dataset on tape. Debugging F2 Debug Use for
debugging your program. Will only read
5000 records. Depending on selection
criteria, you may not select any records.
1-23
13Using TEDEDIT
F6 View Report Press Enter until you see your
report Output------------------------------
-- FOCUS 7.0.8R 09/13/2002 11.36.04
NUMBER OF RECORDS IN TABLE 789
LINES 789
PAUSE.. PLEASE ISSUE CARRIAGE
RETURN WHEN READY ..REPORT KILLED
---------------------------------------
History
FOCUS
Command----------------------
1-24
14Using TEDEDIT
Your program output will look like this. Make
sure your Options are set to N - NOSUPPRESS. If
set to S - SUPPRESS your program will not show,
just your report will show PAGE 1
FOCUS 7.0.8R 09/11/2002 13.50.17
703
-----------------------------------------
FOCUS 7.0.8R 13.50.18 09/11/2002 703
OFFLINE
-----------------------------------------
FOCUS 7.0.8R 13.50.18 09/11/2002 703
1-25
15Using TEDEDIT
STUCK IN FOCUS Output------------------
---------------- FOCUS 7.0.8R 09/13/2002
11.36.04
------------------------
-----------------
History
FOCUS Command------------------------ _
If your cursor is here and you cannot
move it, type FIN to exit MSO
----------------------------------------
-
1-26