home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR3
/
PDT_26.ZIP
/
PDT.DOC
< prev
next >
Wrap
Text File
|
1993-09-21
|
96KB
|
1,944 lines
────────────────────────────────────────────────
────────────────────────────────────────────
────────────────────────────────────────
────────────────────────────────────
────────────────────────────────
────────────────────────────
────────────────────────
────────────────────
────────────────
PDT's Command Reference
(the Pro~Formance Data Tool)
Rob W. Smetana
────────────────
────────────────────
────────────────────────
────────────────────────────
────────────────────────────────
────────────────────────────────────
────────────────────────────────────────
────────────────────────────────────────────
────────────────────────────────────────────────
** Version 2.6 (10/93) **
Copyright (C) 1987-1993, Rob W. Smetana and Pro~Formance.
All Rights Reserved
Pro~Formance Data Tool, PDT and Pro~Formance are trademarks of
Rob W. Smetana and Pro~Formance.
┌────────────────── Start with START.DOC ─────────────────────┐
│ │▄
│ PDT comes with TWO manuals. Begin by reading Start.Doc. │█
│ It explains how to INSTALL, RUN, CUSTOMIZE and EXPERIMENT │█
│ with PDT. │█
│ │█
│ Once you've properly installed PDT and gotten familiar │█
│ with it, refer to this command reference manual which │█
│ has descriptions of all of PDT's options. But because │█
│ PDT offers on-line help for EVERY option, you man never │█
│ (or rarely) have to consult this command reference. │█
│ │█
│ ALSO NOTE: If your printer CAN'T print the lines and │█
│ boxes in this manual, BEFORE you print this, read the │█
│ section in Start.Doc on using Translate.Exe. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
a
Thank you . . .
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Thank you for trying PDT. We're confident that it will become
as indispensible to you as it has to us. PDT is so easy to
use, anyone will find it of value. And programmers, or anyone
who works with data files, will find it a vital tool.
If you have suggestions, comments or questions, please don't
hesitate to call or write us:
Rob W. Smetana (415) 863 - 0530
Pro~Formance 132 Alpine Terrace
San Francisco, CA 94117
Getting Started: Begin with Start.Doc!
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
If you started here, STOP! Read Start.Doc first.
PDT comes with TWO manuals. PLEASE read Start.Doc BEFORE
reading this manual.
* Before you can run PDT, you must install it properly.
So BE SURE to read Start.Doc thoroughly.
* Also be sure to read the section in Start.Doc which
describes how to run PDT, get help and customize PDT.
* Finally, Start.Doc has a section with examples. Once
you've installed PDT, we strongly urge you to run PDT.Exe
and follow the examples. Once you see many of PDT's
features in action, this technical reference manual may be
easier to understand.
b
The Two Sections of This Reference Guide
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This manual describes, in detail, each of PDT's options. BEFORE
you get to this point, you've should have already read Start.Doc
and installed PDT. PDT may not run if it's installed improperly.
So please follow the steps in Start.Doc to install it properly.
Once you've installed PDT we strongly recommend you follow
the Example section in Start.Doc. It's much easier to explain
and understand PDT with pictures than with words. So, in that
section we'll ask you to run PDT and open the sample files we
provided. If you follow the step-by-step examples, you'll SEE
PDT's major features in action. When you're done, this command
summary may make more sense.
This reference guide into two sections:
I. Command Reference
II. Appendices
Appendix I: Creating Structure Files with Editors
Appendix II: Helpful Tips; Salvaging Data Files
Appendix III: Error Messages
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Contents
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
SECTION I: Command Reference
The File Menu; Opening Files; the File List ....... 1.1
Closing Files; Creating/Deleting/Renaming ..... 1.4
Combining (concatenating) Files ............... 1.4
Changing File Sizes ........................... 1.5
Translating Files: EBCDIC/ASCII-ASCII/EBCDIC... 1.5
The Edit Menu; Editing Numeric Fields ............. 1.6
The Search Menu; Search & Replace ................. 1.7
The Block Menu; Marking Blocks .................... 1.8
Adding Up Columns ............................. 1.9
Adding Sequence Numbers to Columns ............ 1.10
Copying Blocks: Overwrite or Insert .......... 1.11
Deleting Blocks ............................... 1.11
Filling or Exporting Blocks ................... 1.12
Inserting Spaces or Records ................... 1.12
Expanding/Shrinking Columns; Updating Headers . 1.13
continued . . .
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Contents
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
SECTION IV: Command Reference (continued)
The Define Menu; Specifying Header Lengths ........ 1.15
Specifying Record Lengths ..................... 1.17
F9 & F10: Changing Records Lengths by 1 ...... 1.18
Forcing dBase Structure ....................... 1.18
Displaying Field Names ........................ 1.19
Clear Structure ............................... 1.19
Defining or Editing Field Structures .......... 1.20
Saving or Reading File Structures ............. 1.22
The Options Menu; Jump ............................ 1.23
Synchronizing 2 or More File Windows .......... 1.23
Jump: By Percent or Byte, or to a Record ..... 1.24
ASCII Chart ................................... 1.24
View EBCDIC files in ASCII Mode ............... 1.25
Text View Mode, Calculator; Configure; ....... 1.26
The Help Menu ..................................... 1.27
Appendix I
Creating Structure Files with Editors ............. A.1.1
Appendix II
Helpful Tips ...................................... A.2.1
Appendix III
Error Messages .................................... A.3.1
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
SECTION I: Command Reference
Topics: PDT's Menus and Options
Tips, Hints and Unique Features
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Start.Doc describes how to run PDT, get help, select options,
etc. You should read that before reading this. This section
describes each of PDT's menus and options. Please pay particu-
lar attention to the TIPS & NOTES.
The FILE Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
FILE edit search block define options help (F1)
┌──────────────────────────────────┐
│ Open a file (ctrl-O) │
│ Close active window (ctrl-C) │
├──────────────────────────────────┤
│ Create a Directory │
│ Create a File │
│ Delete a File │
│ Rename a File │
│ Copy a File to a new location │
│ Combine two or more files │
│ Change File Size │
├──────────────────────────────────┤
│ Translate File: EBCDIC-to-ASCII │
│ Translate File: ASCII-to-EBCDIC │
├──────────────────────────────────┤
│ Exit to DOS (ctrl-X) │
└──────────────────────────────────┘
To Exit PDT to DOS ctrl-X; File/Exit
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Taking the last option first, press ctrl-X to quit PDT. We'll
close any files you've opened (so you needn't close them separ-
ately). And if you changed any structure file, PDT will ask if
you want to save them.
To Open a File ctrl-O; File/Open
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Press ctrl-O (Open).
* Or pull down the file menu (alt-F), make sure the first
option (Open a New File/Window) is highlighted, then
press <cr> to accept it.
You may open 1 - 4 file windows at a time. If you have 4 win-
dows open and ask to open another one, PDT tells you it can't
open any more. Close a window THEN press ctrl-O to open another.
1.2
When you ask to open a file, PDT displays a "file list window:"
Active Directory─>┌─\PDT─────────────────────────────────────────┐
┌>│ .. <DIR> 11-18-95 ...D. ▒
Directories ─┴>│ PDT DIR <DIR> 01-01-95 ...D. ▒
┌>│ PDT DOC 200,000 01-01-95 ....A ▒
Files ─┼>│ SAMPLE_1 DAT 1,769 01-01-95 ....A ▒
└>│ SAMPLE_2 DAT 1,769 01-01-95 ....A ▒
│ ▒
│ ▒
│┌───┤ Alt-(drive letter) = Change Drives ├───┐│
Available Drives─>││A: B: C: D: E: ││
││ ││
│└────────────────────────────────────────────┘│
Options─>│(^S)=Sort (.)=ParentDir (F1)=Help (Esc)=Cancel│
└──────────────────────────────────────────────┘
To Select a File:
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Click Left on a file name. (Click Left on the shaded,
vertical scroll bar, if necessary, to scroll the file
list down or up.)
* Or press the first letter of the file you want to load.
When PDT highlights the file you want, press <cr> to
accept it. If two or more files begin with the same
first letter, press the letter a few times until the
file you want to open is highlighted.
* Or press the cursor pad keys (Down, Up, PgDn, PgUp, End
and Home) until the file you want is highlighted, then
press <cr> to accept it.
NOTE: The file list window above shows two directories (indi-
cated by "<DIR>"). Directory names are always sorted by name.
To sort file names, press ctrl-S (shown as ^S above). PDT will
then ask you how you want the list sorted:
┌───────────────────────────────────┐ Press:
│ Sort Files by: │ (N) to sort by NAME
│ │ (E) to sort by EXTENSION
│ (N)ame (E)xt (S)ize (D)ate (A)ttr │ (S) to sort by SIZE
└───────────────────────────────────┘ (D) to sort by DATE
(A) to sort by ATTRIBUTE
(hidden, read only,
system, etc.)
1.3
To Change Directories:
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
The first time you ask to open a file, the "active directory"
will be the directory you were in when you ran PDT. In the
example above, the top of the file list window shows we're in
a directory called "\PDT." In the "Change Drives" section of
the file window, we'd also see that "C:" was highlighted,
meaning we're on drive C:.
To change directories:
* Directories appear in the file window with "<DIR>" beside
their name. To select a directory, highlight one and press
<cr>. Select ".. <DIR>" to move back one directory.
* Press "." (the period) to move to the root directory, then
select a new directory.
To Change Drives:
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Press alt-[drive letter]. For example, in the window above,
PDT shows us we have 5 disk drives: A - E. For a directory
of, say, drive A:, we'd press alt-A.
1.4
To Close a File ctrl-C; File/Close
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
* Press ctrl-C.
* Or select Close from the File menu.
If you have 2 or more files open, PDT will re-draw the other
windows to fill the screen.
File Options: Create Files or Directories File/Create
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To create a new file or directory, select Create File or Create
Directory from the File menu. Then just type in the name of
the file or directory and press <cr>.
File Options: Rename, Delete, Copy File/Rename/etc.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To rename, delete or copy a file, select one of these options
from the File menu. PDT will display its normal file list
window. Select a file. If you asked to copy it or rename it,
PDT will ask you to type in the new name.
File Options: Combine Files File/Combine
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This powerful option lets you combine (concatenate) 1-6 files.
* Select Combine File from the File menu.
* PDT's normal file window will appear. Beneath it, another
window also appears which asks you to:
- Select a main file.
- Then select up to 5 more files to add to the main file.
- Press <Esc> when you're done selecting files to add. PDT
then asks if you want to proceed. Press <Y>es or <N>o.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ The "main" file WILL be altered: the other files you chose │█
│ will be added (concatenated) to the end of it. These other │█
│ files won't be altered. To combine more than 6 files, just │█
│ repeat this process. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.5
File Options: Change File Size File/Change Size
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This very powerful option lets you change a file's size to:
* Expand files -- to reserve space for data you plan to add.
* Truncate files -- which is a very fast way to delete dozens,
hundreds or millions of records in one, simple operation.
To change the size of a file, first open it in PDT (ctrl-O),
then select Change File Size from the File menu. PDT then asks
you how many bytes the file should have; enter 0-999 million.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ You may be UNABLE to undo this, even using file-recovery │█
│ tools! And setting the file size to 0 destroys the file. │█
│ │█
│ When truncating a file, it might help to move the cursor to │█
│ the end of the last record you want to keep. At the bottom │█
│ of the screen, notice the value of DEPTH: showing where you │█
│ are in the file. ADD 1 to the number you see, then enter it.│█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Translating Files: EBCDIC/ASCII File/Translate
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
PDT offers two options to translate EBCDIC files to ASCII
format, or vice versa. This is especially handy if you've
downloaded an EBCDIC file from, say, an IBM mainframe and want
to view and edit it. You can translate it to ASCII, edit it,
then translate it from ASCII-to-EBCDIC and send it back.
To do this: Press alt-F (File Menu). Select either "Translate:
EBCDIC-to-ASCII" or "Translate: ASCII-to-EBCDIC." Then, from
PDT's file list window, choose a file and confirm that you
really want to proceed.
ALSO SEE: Options - View EBCDIC in ASCII. The "Translate"
options in the File menu re-writes the file. The "View EBCDIC
in ASCII" option does NOT change the file. It simply tells PDT
to display EBCDIC files in ASCII format.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ "Translate" can be used to "encrypt" files. Either option │█
│ (used 1-3 times?) can help protect files from prying eyes. │█
│ NOTE: While PDT DOES correctly translate EBCDIC characters │█
│ to ASCII and back again, this version does NOT translate the│█
│ values of EBCDIC packed binary fields. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.6
The EDIT Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file EDIT search block define options help (F1)
┌──────────────────────────────┐
│ Edit is OFF (ctrl-E) │
│ Edit Numeric Field (F6) │
└──────────────────────────────┘
Edit Mode On/Off ctrl-E; Edit/Edit
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Also see: Options/Configure -- to turn Edit Mode on by default.
Unless you turn edit mode on by default, it will be OFF when
you open files. To change anything in files, you must turn
Edit mode ON. To do so, press ctrl-E, or select Edit
from the Edit menu. Do the same to turn Edit mode OFF.
When Edit mode is ON, "E" will blink on the left edge of the
file window. If Edit mode is OFF, this area is blank. Remember,
when Edit mode is ON, changes are IMMEDIATELY saved to disk!
╔═══════════╗ ╔═══════════╗
E Edit is ║ Edit is ║
║ ON ║ ║ OFF ║
╚═══════════╝ ╚═══════════╝
Edit Numeric Field F6; Edit/Edit Numeric
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This option is especially useful to edit numeric fields stored
in "packed binary" form. But, you can press F6 to edit any
field up to 26 columns wide. If you press F6 when your cursor
is in a field wider than 26 columns, an error message pops up.
"Packed binary" refers to the way numeric data is often stored,
usually in fewer columns than would be needed to store the same
numbers in character or text format. NOTE: Since EBCDIC files
store numeric fields in a unique format, in this version of PDT,
the F6 option may NOT be used with EBCDIC files. ALSO NOTE:
dBase files store numeric fields in character format.
For example, suppose you move the cursor to an Integer field
and notice that its value (beside "Value:" at the bottom of
the screen) is 8,562. You want to change 8,562 to 10,562.
* But, since 8,562 is a 2-byte integer, it's stored as "r!".
* What would you enter for 10,862? You don't have to know!
* Just press F6 and type in 10862. When you press <cr>, PDT
saves the appropriate value -- "n*".
1.7
The SEARCH Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file edit SEARCH block define options help (F1)
┌─────────────────────┐
│ Search (ctrl-S) │
│ Replace (ctrl-R) │
└─────────────────────┘
Press ctrl-S to search for, or ctrl-R to replace something. You
may search for or replace from 1 to about 75 characters. When
you press ctrl-S or ctrl-R, a window like this pops up.
┌───────────────────────────────────────────────────────────────┐
│Alt- ^(D)irection Yes(I)gnore Case No(B)lock Only (F7) ASCII│
│ │
│Search for: (F1 = Help) │
│░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
│Replace with: │
│░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░│
└───────────────────────────────────────────────────────────────┘
Enter a character or phrase to search for and press <cr>. If you
pressed ctrl-R (Replace), enter the replacement character or phrase
and press <cr> again. While entering either phrase, press:
alt-D to tell PDT which Direction to search: Up (above where
your cursor is in the file) or Down (below the cursor).
When you press alt-D, the arrow beside (D)irection will
change from pointing up or down to the opposite.
alt-I to tell PDT to Ignore case. If you say "Ignore case,"
we'll find the phrase regardless of how it's capitalized.
alt-B to say "search just the Block I marked."
F7 to enter any ASCII character from 0-254.
When you're done, PDT will begin searching your file. Press
<Esc> to cancel the search. If you're searching, PDT displays
where it is in the file. If PDT finds a match, it will appear
in the top left corner of the file window. To find the next
occurrence, press ctrl-S, <cr>. If replacing, PDT tells you how
many items it has replaced.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ You can Search for something with Edit Mode either on or │█
│ off. But Edit Mode must be ON to Replace something. You │█
│ can Replace something only with something else of the SAME │█
│ LENGTH. Files can't expand or contract during replace. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.8
The BLOCK Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file edit search BLOCK define options help (F1)
┌───────────────────────────┐
│ Mark Block (ctrl-B) │
│ Mark Column (ctrl-M) │
│ Unmark Block (ctrl-U) │
│ Add Column (ctrl-A) │
│ Sequence # Col. (ctrl-Q) │
├───────────────────────────┤
│ Copy w/overWrite (ctrl-W) │
│ Copy w/Insert (ctrl-I) │
│ Delete Block (DEL) │
│ Fill (ctrl-F) │
│ Export (ctrl-P) │
├───────────────────────────┤
│ Insert spaces (INS) │
├───────────────────────────┤
│ Expand Column or Field │
│ Shrink Column or Field │
└───────────────────────────┘
Many of PDT's Block options require that you first MARK a block
and then copy, delete or fill it, etc.. Other options do not
require marked blocks (inserting space, shrinking columns, etc.).
Marked Block Options
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
You can mark blocks in two different ways.
* Press ctrl-B to mark continuous blocks of characters or records.
- Press left/right cursor keys to expand the block left/right.
- Press down/up cursor keys to mark the rest of the record
you're on, and then move to the next/last record.
- Press ctrl-B again to mark the end, or ctrl-U to unmark it.
* Press ctrl-M to mark a column, field or any rectangular area.
- Press left/right cursor keys to expand the block left/right.
- Press down/up cursor keys to move to the next/last record.
- Press ctrl-M again to mark the end, or ctrl-U to unmark it.
Notice that the major difference here is what happens when you
move the cursor up or down. With ctrl-M, only the columns you
included are marked. With ctrl-B, entire records are marked.
Also, you can mark or unmark blocks with Edit Mode OFF. But to
use any block option that alters the file, Edit Mode must be ON.
1.9
Once you mark a block, you may copy, fill, or export it, etc.
As PDT works, it displays how much of the file is left to go.
To ADD UP Columns ctrl-A; Block/Add Column
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
PDT's "add field" option is a hybrid: you may use it to add
columns you've marked, or add up a field across EVERY record.
In other words, you can first press ctrl-M, mark a column, then
press ctrl-A to add up what you marked.
Or, just move your cursor to a field and you press ctrl-A. PDT
will add up that field from record #1 through the last record.
In large files, this can take a while. So if you press ctrl-A
by mistake, press <Esc> to stop.
Notes:
──────
* After PDT adds up the values, it displays the results with
up to 8 decimal places.
* PDT will add true numeric fields, or "character" numeric
fields like those you'll find in dBase files. Adding
alphabetic fields (letters only) yields values of 0.
* This option is meant primarily to add up positive values.
Negative values could be interpreted as "rollover errors"
and may cause PDT to cancel the process.
1.10
To SEQUENCE NUMBER Columns ctrl-Q; Block/Sequence
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
PDT's "sequence number" option is a very flexible way to add
unique sequence numbers to each record (eg., record, part or
customer numbers). Sequence "numbers" may be numeric or alpha-
betic, or a combination of the two. For example, you could use
customer numbers like "AAA-00-0000." PDT would increment numbers
from 0 - 9 before "rolling" left to the next character. When it
got to "AAA" it would increment the letters: AAB, AAC, etc.
Since the letters started out as capitals, they'll stay that
way. Any lower case letters would remain lower case.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ Notice that letters give you a greater range than do │█
│ numbers: PDT can increment letters 26 times, but numbers │█
│ only 9 times, before it must move left to the next charac- │█
│ ter. That means that in any given space, letters give you │█
│ a much greater range of values than do numbers. │█
│ │█
│ * A 3-digit alphabetic "number" ("AAA") offers over 17,000 │█
│ possibilities. │█
│ │█
│ * But a 3-digit numeric "number" ("000") offers only 1,000 │█
│ possibilities. │█
│ │█
│ Also note that PDT "increments" ONLY numbers 0 - 9 and let- │█
│ ters A - Z or a - z. All other characters are considered │█
│ "formatting" characters and are NOT incremented. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To add sequence numbers to a column, first press ctrl-M and mark
the column. Then press ctrl-Q. When you do, PDT asks you to enter
the first or starting "value." You can enter as many characters
as you marked using ctrl-M. For example, if you mark a field
or column 14 characters wide, you'll be able to enter a 14-char-
acter starting sequence number.
In the example below, we marked an area 6 characters wide.
┌─────────────────────────────────┐
│ Enter STARTING sequence number: │
│ │
│ ░░░░░░ │
└─────────────────────────────────┘
1.11
To COPY Blocks ctrl-W or ctrl-I; Block/Copy
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
After marking a block, move your cursor to another spot (switch
file windows if needed: press alt-# or ctrl-PgDn). Then press:
* ctrl-W to OVERWRITE whatever is at that spot.
* ctrl-I to INSERT the block at that spot.
┌───────────────────────── WARNING: ──────────────────────────┐
│ │▄
│ PDT won't allow copying columns with Insert with dBase │█
│ files. And you should not use it with files for which you │█
│ created a structure file. INSTEAD, use Expand Column to │█
│ increase the column's width. THEN use ctrl-W to copy with │█
│ Overwrite. The reason for this is that Expand Column gives │█
│ you options to update both the dBase header and the struc- │█
│ ture files. Unless the dBase header is updated, you could │█
│ destroy your file (or at least render it unreadable)! │█
│ │█
│ Inserting Columns is a two step process. PDT first copies │█
│ the column you marked to a temporary file, and then reads │█
│ it back in, inserting it where your cursor is. PDT keeps │█
│ you informed of the progress of both operations. This is │█
│ the only time PDT uses temporary files. Also, sufficient │█
│ disk space must be available to save this temporary file. │█
│ If there's too little disk space, PDT will let you know. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To DELETE Blocks DEL; Block/Delete
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To delete blocks, simply mark them and press DEL.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ If you open a dBase file, mark a COLUMN, and then press DEL,│█
│ PDT will urge you to use the "Shrink Column" option instead.│█
│ │█
│ Shrink Column lets you update the dBase file header, but │█
│ DEL does NOT. If you delete columns without updating the │█
│ header, programs (including PDT) might later tell you that │█
│ your file has been corrupted! │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.12
To FILL Blocks ctrl-F; Block/Fill
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To fill a block, first mark it, then press ctrl-F and tell PDT
what to fill the block with. Enter spaces to erase the area.
If you marked a continuous block, PDT repeats the "phrase" you
entered to completely fill the block.
If you marked a column, PDT begins each row with the "phrase"
you entered. If your phrase is narrower than the column you
marked, PDT fills the rest of the column with blank spaces.
To EXPORT Blocks ctrl-P; Options/Export
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Export means to save the marked block to a file. PDT will ask
you for a file name. If you marked a column, PDT will also ask
you if you want each line saved with a Carriage Return/Line
Feed (CR/LF) at the end.
* If you tell PDT to export to a file that already exists,
we'll ask you if you want to Overwrite it or Add to it.
To INSERT Spaces or Records INS; Block/Insert
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
When you press INS, PDT asks how many spaces you want to add --
beginning where the cursor is. The default is the record size.
PDT adds ASCII character 32 (Space). To fill the area with a
different character, use the FILL option once PDT has inserted
the spaces (first press ctrl-B and mark the block).
If you're working with a database file and want to add several
blank records:
* Move to column 1 (press Home).
* Note the Record Size at the bottom of your screen.
* Press INS and enter a multiple of the record size. For
example, if the record size is 400 and you want to add 6
blank records, tell PDT to add 2400 spaces.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ To widen or expand a column, use Expand Column not Insert. │█
│ Expand Column will insert spaces for each record. And, if │█
│ you want, PDT will also update the dBase file header and │█
│ your structure file. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.13
EXPANDING columns or fields. Block/Expand
SHRINKING columns or fields. Block/Shrink
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
These very powerful options let you widen (or shrink) fields or
columns. And, if you like, PDT will also update the dBase file
header and your structure file AUTOMATICALLY. They work in
similar ways, so we'll explain them together.
Move the cursor to the column where you'd like to begin expanding
or shrinking. Be sure Edit Mode is on (press ctrl-E), then press
alt-B to pull down the Block menu. Select either Expand Column or
Shrink Column. PDT then displays one of these windows:
╔═══════╣ Insert Columns ╠═════╗ ╔══════╣ Delete Columns ╠═════╗
║ ║ ║ ║
║ Begin at Column: 33 ║ ║ Begin at Column: 33 ║
║ Number of Columns: 1 ║ ║ Number of Columns: 1 ║
║ASCII # of fill character: 32 ║ ║ ║
║ Alter Structure? (Y/N): Y ║ ║ Alter Structure? (Y/N): Y ║
║ Alter DBF Header? (Y/N): Y ║ ║ Alter DBF Header? (Y/N): Y ║
║ ║ ║ ║
║ Begin? (Y/N): ║ ║ Begin? (Y/N): ║
╚══════════════════════════════╝ ╚═════════════════════════════╝
In each window you must answer several questions:
* You first enter the number of the column where you want to
begin -- "Begin at Column." The number you'll see (33 in
the example above) is where your cursor was when you began
this operation. Change this number, if you like, to begin
somewhere else. Press <cr>.
* Next, enter how many columns you want to insert or delete.
If you marked a column block (ctrl-M), you'll see the
number of columns you marked (rather than 1).
* IF you're expanding a column, enter the ASCII number of the
character we should fill with the area with. "32" is Space;
enter 0 - 254. If you're not sure what number to enter,
press F7 to choose a character from PDT's ASCII table.
* Next, press <Y>es or <N> to tell PDT if you'd like to update
the structure file, and, if appropriate, the header of the
dBase (DBF) file. This can be CRITICAL! See Tips & Notes.
* Finally, press <Y>es to begin, or <N>o or <Esc> to quit.
1.14
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ If you change the width of fields in dBase files and DON'T │█
│ update the header, other programs may be unable to read │█
│ the file. This could render the file USELESS! Be careful. │█
│ │█
│ With dBase files, PDT CANNOT: │█
│ │█
│ 1. Change the first, "Deleted record" field. │█
│ │█
│ 2. Delete a field (shrink it to 0). Use PDT Tool Kit │█
│ programs to delete dBase fields. │█
│ │█
│ 3. Delete columns across fields -- since this effectively │█
│ deletes the fields in the middle. To shrink two or │█
│ more fields, shrink them separately. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ EXPAND columns inserts blank columns to the LEFT of the │█
│ "Begin at Column" (which is usually where the cursor was │█
│ when you invoked this option). │█
│ │█
│ If this column is the LAST column of a field, inserting │█
│ blanks to the left will shift everything in the last column │█
│ to the right. If this happens, just: │█
│ │█
│ 1. Move right to the new end of the field. Be sure you're │█
│ on the top row (press ctrl-Home). Then mark a single │█
│ column from top-to-bottom by pressing: │█
│ │█
│ ctrl-M ctrl-End ctrl-M ctrl-Home │█
│ │█
│ 2. Now move left to where that column used to be (ie., │█
│ the "Begin at Column"). Press ctrl-W to copy the │█
│ marked column to the column you're now in. │█
│ │█
│ 3. Immediately press ctrl-F and Fill the marked column │█
│ with one blank space (or any ASCII character). │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.15
The DEFINE Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file edit search block DEFINE options help (F1)
┌─────────────────────────────────┐
│ Header length (ctrl-H) │
│ Record length (ctrl-L) │
│ Reduce rec. len 1 (F9) │
│ Increase rec. len 1 (F10) │
│ Force dBase structure │
│ Display Fields: OFF (ctrl-D) │
│ Clear Structure │
├─────────────────────────────────┤
│ Define Field (F2) │
│ Edit Field Structure (F3) │
│ Save Structure File (F4) │
│ Load Structure File (F5) │
└─────────────────────────────────┘
Use options in this menu to define the structure of files. This
menu also has options affecting how PDT displays files (Force
dBase, Display Fields and Clear Structure).
Header Length ctrl-H; Define/Header
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Use this option to specify the top portion of a file you want
PDT to treat as a "header" and not display. To set the header
length, press ctrl-H (or select Header Length from the Define
menu), then enter the size of the header (0 - 999 million bytes).
What's a Header?
────────────────
Many files, like dBase ".DBF" files, begin with a header. Pro-
grams read this header to determine what's in the file: how
many fields it has, the length and type of each field, etc..
The header is NOT data. So we set header lengths to tell PDT
to skip them and begin displaying the file with the first record.
PDT automatically recognizes dBase files (by the .DBF extension),
reads the header and displays records and fields appropriately.
But if your file is not a dBase file, AND it has a header, set
the header length to help PDT properly display your data.
1.16
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ Setting the header length is usually the FIRST STEP in │█
│ defining the "structure" of a file. If a file has a │█
│ header, it's much easier figuring out the rest of the │█
│ file structure if you tell PDT not to display the header. │█
│ │█
│ Once you set the header, press F4 to save a structure file. │█
│ The next time you open this file, PDT will set the header │█
│ size automatically. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ A fast way to set header lengths is to move the cursor to │█
│ the first character in a record, then press ctrl-H, ctrl- │█
│ Enter. Everything above that point will be treated as a │█
│ header. │█
│ │█
│ This is handy when working in the middle or bottom of large │█
│ files. Periodically setting a new header length lets you │█
│ press PgUp or ctrl-Home and move no higher than the first │█
│ record you want to work with. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ If you open a dBase file and would like to see or edit or │█
│ repair the header: │█
│ │█
│ * Press ctrl-H and enter "0" (zero) for Header Length. │█
│ │█
│ * Press ctrl-Home then Home to be sure you're at the first │█
│ byte of the file. You're now looking at the header. │█
│ │█
│ NOTE: Registered users receive Fix-DBF.Hdr and Fix-DBF.Fld.│█
│ These are very handy PDT structure files which can help you │█
│ explore the header and field structure of dBase files. │█
│ │█
│ And these can be INVALUABLE if a dBase file is ever damaged.│█
│ They can help you isolate and fix the corrupted areas. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.17
Record Length ctrl-L; Define/Record
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Set the Record Length to tell PDT how long each "logical line"
is in a file.
Some files have no logical record length. Executable (.Exe or
.Com) files have no lines in the traditional sense. And text
files often have lines of varying lengths. For files like these,
changing the Record Length simply changes how wide a view PDT
displays before it "wraps" the data around to the next row.
But many database or data files have fixed-length records, with
each record made up of fields (e.g., Last Name, First Name,
Address, etc.). The width of each field is "fixed," so the length
of each "record" (e.g., each customer's data) is also fixed.
By telling PDT the correct record length, you help it display
each record (each customer in our example) on a separate line.
And the fields will fall into logical columns.
Press ctrl-L (or select Record Length from the Define menu),
then enter record length (1 to 9,999 bytes).
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ Setting the record length is usually the 2nd step in defin- │█
│ ing the "structure" of a file. Set the record length, │█
│ then press F2 at the beginning of each field and "define" │█
│ it. Finally, press F4 to save the structure file. │█
│ │█
│ If you open a dBase file (one with a ".DBF" extension), PDT │█
│ automatically determines the record length. If your dBase │█
│ files DON'T have a ".DBF" extension, use the Define-Force │█
│ dBase option to tell PDT to read the dBase file's header. │█
│ │█
│ ALSO SEE: Options-Configure. If you open non-dBase files, │█
│ PDT uses two approaches to determine an "appropriate" record│█
│ length. Tell PDT which one to use in the Configure menu. │█
│ │█
│ 1. By default, PDT sets the record length to the first │█
│ Carriage Return (CR, Chr$(13)) or, if none, the first │█
│ Line Feed (LF, Chr$(10)) character it finds. This is │█
│ very handy when working with fixed-length data files │█
│ with each record ending in, say, a CR/LF. │█
│ │█
│ 2. But if you'd prefer that PDT set the record length │█
│ to the width of the file window (normally 78 or 38), │█
│ tell PDT to use <W>indow size to set record length. │█
│ This is appropriate if you normally work with files │█
│ that have no structure (like .Exe or .Com files) or │█
│ non-fixed length files (like text files). │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.18
Incrementing/Decrementing Record Length F10/F9; Define-F10/F9
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
These two options are especially handy when trying to determine
a file's structure. Set the header length (ctrl-H), then press
ctrl-L and "guess" the record length. Then press F10 or F9 to
increase or reduce the record length by one, respectively. PDT
will quickly re-draw the screen, and you'll often see your data
"swing" into view. Once the record length seems correct, press
F4 and save a structure file.
Force dBase Define-Force dBase
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This option tells PDT to read the header of dBase files to
determine the file's record and field structures. There are
two reasons why you might need to do this.
1. If you open a dBase file that does NOT have a ".DBF" exten-
sion, PDT won't recognize it as a dBase file. It therefore
won't read the dBase header, and can't properly display
records and fields. Choose Force dBase Structure to force
PDT to read the dBase header.
2. If you change the header or record lengths of dBase files,
or edit or clear the structure, select Force dBase to
restore the original layout.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ To simplify working with dBase files that don't have ".DBF" │█
│ extensions, load them, select Force dBase Structure, then │█
│ immediately press F4 (Save Structure File). │█
│ │█
│ As long as you save the structure file with the same name as│█
│ your data file, PDT will load it whenever you open the file.│█
│ │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.19
Display Fields ctrl-D; Define/Display Fields
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Press ctrl-D to tell PDT to display field names on the top line
of a file window (replacing the file name). Press ctrl-D again
to turn this feature OFF.
This option helps you see which fields are coming up, and which
are behind you. But with narrow columns or fields, it's impos-
sible to display the full field name. If you're not sure what
a field is, move the cursor to it, then glance at "FIELD:" on
the bottom line of your screen.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ ALSO SEE Appendix I: Customizing PDT. In PDT's Configure │█
│ menu you can turn this option ON by default. │█
│ │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Clear Structure Define/Clear Structure
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Select Clear Structure to clear the field structure for a file.
The main use for this option is to turn off the contrasting
colors PDT uses to display fields. This sometimes makes it
easier to browse or edit records. To restore the structure,
use Force dBase or Read Structure -- depending on the type of
file you're working with.
When you select this option:
* Header and record lengths won't change.
* But since PDT no longer "knows" where and what each field
is, it can no longer:
- Display fields in contrasting colors.
- Display field names at the top and bottom of your screen.
- Display the correct values of fields as you change fields.
- Offer you the F6 (Edit Field) option since there aren't
any fields any more.
1.20
Define Field/Edit Field F2/F3; Define/Field-Define/Edit
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
We're explaining two options together since they work in
similar ways.
You "define" fields by telling PDT where a field starts, what
type of field it is (e.g., Character, Integer, etc.) and what
it's name is. Only the first step is required.
Why should I define fields? Because once you do, PDT will then
be able to: 1. Tell you which field you're in; 2. Tell you
the "value" of that field; and, 3. Let you press F6 and edit
fields, even those stored in packed binary form.
This is the last step in creating structure files (after setting
the Header and Record lengths). To define fields:
* First move your cursor to the FIRST column of a field. Al-
though not strictly required, this simplifies things a lot.
Let's assume you moved to column 1.
* Press F2. When you do, a window like this pops up.
┌─────────────────────────────────────────────────────────┐
│ COL TYP NAME 1 <-Field# WIDTH TYPES LEN │
├─────────────────────────────────────────────────────────┤
│ 1 C 81 (c)haracter ? │
│ 81 C __Past End! (t)iny Integer 1 │
│ (i)nteger 2 │
│ (l)ong Integer 4 │
│ (s)ingle MS 4 │
│ (j)ingle IEEE 4 │
│ (d)ouble MS 8 │
│ (k)ouble IEEE 8 │
│ ($)currency 8 │
├─────────────────────────────────────────────────────────┤
│ (^A)dd (^D)elete (^T)runcate to End (F1) = Help │
└─────────────────────────────────────────────────────────┘
This window lists the non-dBase field types. If you're working
in a dBase file and press F2, you'd see a window with different
field "types" (see below). NOTE: If you open a ".DBF" file,
PDT reads the field names and starting columns for you. In this
case, the COL, TYP and NAME columns would be already filled in
for you! The columns are blank here since, in this case, we're
simply showing how non-dBase field types will appear.
1.21
Here are the dBase field types:
┌─────────────────────────────────────────────────────────┐
│ COL TYP NAME 1 <-Field# WIDTH TYPES LEN │
├─────────────────────────────────────────────────────────┤
│ 1 C (C)haracter ? │
│ 81 C __Past End! (N)umeric ? │
│ (L)ogical 1 │
│ (D)ate 8 │
│ (M)emo 10 │
├─────────────────────────────────────────────────────────┤
│ (^A)dd (^D)elete (^T)runcate to End (F1) = Help │
└─────────────────────────────────────────────────────────┘
* When one of these windows pops up, the cursor would by in
the TYP (or Type) column. PDT initially assumes each field
is a Character field, so you'll see "C" or "c" there. Change
the field type, if appropriate, then press <cr>.
* Next, enter a field name under NAME. Although optional,
entering field names lets us display field names both at
the top of file windows and the bottom of your screen.
- Note: PDT places NO restrictions on field names. This
differs from, say, dBase which capitalizes names and won't
allow certain characters in them. For example, "First Name"
must be "FIRST_NAME" in dBase, since dBase won't accept
spaces in field names.
* BE SURE to press <cr>, then press <Esc>. If you press <Esc>
while your cursor is still in the Name column, PDT will as-
sume you want to cancel this action.
When you press <Esc>, PDT re-draws the fields in contrasting
colors. To tell PDT about the next field, move the cursor to
its first column and press F2. Enter a field type and name,
then press <Enter>, <Esc>. Repeat this process for the rest of
the fields in your file.
Finally, press F4 and SAVE the structure file. PDT saves
structure files in its special subdirectory: PDT.DIR. As long
as you save the structure file with the SAME NAME as your data
file, PDT will automatically load your structure file whenever
you open the data file.
If you save structure files with names DIFFERENT than your data
files, just open your data file, then press F4 to load the
structure file.
1.22
Press F3 to EDIT field structures. PDT's field window pops up.
* PDT will locate your cursor in the line that defines the
field you were in when you pressed F3. So, for example,
if you're in the 5th field in your data file and you press
F3, PDT will put you on line #5 of this window.
* Edit the field type, or name or the starting column. Press
Tab or Shift-Tab to move between columns. Or press:
- ctrl-A to ADD (insert) a field.
- ctrl-D to DELETE the field definition your cursor is on.
- ctrl-T to TRUNCATE the list, deleting EVERYTHING from the
line your cursor is on to the end of the list.
Remember, BE SURE to press <cr> after you edit something. Then
press <Esc>. If you press <Esc> with your cursor still in the
column you edited, PDT assumes you want to cancel the action.
Saving Structure Files F4; Define/Save Structure
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Press F4 to save a structure file. A window pops up and PDT
urges you to save the structure file with the SAME NAME as your
data file. Since PDT saves structure files only in PDT.DIR,
there should be no chance of overwriting your data file.
If you use the same name as your data file, PDT automatically
loads the structure file whenever you open the data file. Per-
haps the only times you would NOT use the same name are to save:
* Generic structures for data files with the same structure.
* Alternate views of the same data file.
Reading Structure Files F5; Define/Read Structure
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Press F5 to read a structure file. PDT will display its normal
file list window listing the structure files saved in PDT.DIR.
Click Left on the one you want, or highlight it and press <cr>.
You may never have to do this. If you save structure files with
the same name as your data files, PDT reads them automatically.
The only times you normally have to press F5 are if you:
* Save a structure file with a name different from a data file.
* Edite the structure, and now want to restore the original.
* Open a dBase (.DBF) file and prefer the structure you
created over the dBase structure.
1.23
The OPTIONS Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file edit search block define OPTIONS help (F1)
┌─────────────────────────────────┐
│ Synchronize windows (ctrl-Y) │
│ Jump (ctrl-J) │
│ Get ASCII Character (F7) │
│ View EBCDIC in ASCII OFF │
│ Text view mode (ctrl-T) │
│ Calculator (F8) │
├─────────────────────────────────┤
│ Configure │
│ Registration │
└─────────────────────────────────┘
Synchronize File Windows ctrl-Y; Options/Synchronize
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
"Synchronize windows" means that if you open 2 or more files
and then scroll through one file, the other windows will scroll
as well. Move right (or up or down) in one window, and PDT
will also scroll other window(s) right (or up or down).
This option is especially useful to compare different files, or
different parts of the same file (open a file 2 or 3 times).
To synchronize windows, open at least two files, then press
ctrl-Y. A small "s" will appear in the top left corner of
your screen. To "un-synchronize" windows, press ctrl-Y again.
The small "s" will disappear.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ Before pressing ctrl-Y, you might want to "allign" all files│█
│ so the top, left corner is at the same spot in each file. │█
│ │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.24
Jump ctrl-J; Options/Jump
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Press ctrl-J to jump to a different location in the active file.
PDT then displays this menu:
┌───────────────────┐
│ ──── Jump To ──── │
│ │
│ (P)ercent │
│ (B)yte │
│ (R)ecord │
└───────────────────┘
* Press (P) to jump to a location, say, 75% into the file.
* Press (B) to jump to an specific location (e.g., 9000 bytes).
* Press (R) to jump to a specific record.
Once you select an option, PDT will ask you to enter the
percentage, byte or record to jump to.
Get ASCII Character F7; Options/Get ASCII
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
When editing a file, or when entering a phrase to search for or
replace, press F7 to enter ANY ASCII character: from 0 - 255.
PDT will display an ASCII chart. To select a character:
* Click Left on it.
* Or press the cursor pad keys until the character you want
is highlighted, then press <cr>. As you move, PDT will
display the ASCII (Decimal) and Hexadecimal numbers of the
character that's highlighted.
* Press <Esc> to quit without selecting a character.
1.25
View EBCDIC in ASCII Options/View EBCDIC
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
EBCDIC (or Extended Binary Coded Decimal Information Code) re-
fers to the way information is stored on large IBM computers.
On PCs, information is normally stored in ASCII format.
If you open an EBCDIC file, select this option to ask PDT to
display it in ASCII mode. This lets you view and edit it in
a format that's much easier to understand.
NOTE: Turning this option ON does NOT change the way the file
is stored on disk. It affects only how PDT displays it. Any
changes you make are saved to disk in EBCDIC format.
When you select this option, the menu will toggle between ON
and OFF, as in "View EBCDIC in ASCII ON."
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ WARNING: As we mentioned before, this version of PDT does │█
│ NOT translate EBCDIC packed binary numeric fields! │█
│ │█
│ * You CAN use all of PDT's EBCDIC options with such files. │█
│ │█
│ * But you should NEVER edit these packed binary numerics. │█
│ │█
│ * You CAN safely edit the CHARACTER portions of EBCDIC │█
│ files. These changes are saved (correctly) in EBCDIC. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ ALSO SEE: Options-Configure. In PDT's Configure menu, you │█
│ can turn this option ON by default. This is convenient if │█
│ you'll always work with EBCDIC files. │█
│ │█
│ ALSO SEE: File-Translate. PDT's File menu has two options │█
│ letting you translate EBCDIC files to ASCII, and back again.│█
│ │█
│ SAVE a STRUCTURE FILE: If you open an EBCDIC file, and │█
│ turn this option ON, immediately save a structure file -- │█
│ even if you don't want to mark fields, set record size, etc.│█
│ Then, whenever you open this file, PDT will read the struc- │█
│ ture file, and turn EBCDIC view mode on for you. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
1.26
Text View Mode ctrl-T; Options/Text View
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Since PDT "displays" all characters in files (rather than
"acting" on them), it's not well-suited for browsing through
or editing text files with variable-length lines, all ending
with a Carriage Return/Line Feed.
But if you open a text file and want to view it in normal text
mode, press ctrl-T. PDT will suspend all normal operations
and re-display the file from "roughly" where your cursor is.
By "roughly" we mean within a PgUp or PgDn of where you are.
Browse around, then press <Esc> to resume normal operations --
again, roughly where you were when you pressed <Esc>.
Calculator F8; Options/Calculator
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Press F8 to pop up PDT's calculator. PDT will turn on
NUMLOCK so you can enter numbers on the numeric keypad.
One use for the calculator is to determine the Hexadecimal
value of a Decimal number. Just enter the decimal number,
then press H to see its Hex equivalent. But you can't do
the reverse -- you can't enter a Hex number and get it's
decimal equivalent.
PDT will display Hexadecimal values in contrasting colors.
Just press a key to restore the decimal value and resume.
Configure Options/Configure
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Select this option to "customize" PDT to your liking. See
Appendix I for details.
Registration Options/Registration
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
This option simply displays the name of the registered user
of the program you're using.
When you order PDT from us, or when, as a registered user, you
run Install.Exe, your name, address and phone number are
embedded in PDT.
This option lets you (or us) quickly determine who licensed
the copy you're using.
1.27
The HELP Menu
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
file edit search block define options HELP (F1)
┌──────────────────────────────┐
│ Introduction & Features │
│ Getting Help │
│ Using the Menus │
│ Summary of Commands │
│ Using a Mouse │
│ Installing & Customizing PDT │
├──────────────────────────────┤
│ To Order, or To Get Support │
├──────────────────────────────┤
│ Browse through PDT.Ref │
└──────────────────────────────┘
To get help, press F1 almost anytime. Or pull down the Help
menu, highlight an option, and then either:
* Press F1. PDT will display 1 or more help screens, and
then return to the Help menu. Just select another topic,
or press <Esc> to exit the Help menu, or select a different
menu.
* Or press <cr>. PDT will display the same screens it would
have if you pressed F1. But when you're done, it will exit
the Help menu.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
SECTION V: Appendices
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
APPENDIX I: Creating Structure Files Outside PDT
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
To summarize, structure files "define" the structure of files:
record length, field type and length, etc.. If PDT knows the
structure of a file:
* PDT displays records and fields in logical rows and columns.
* PDT can display field names both at the top of each file
window, and at the bottom of your screen.
* PDT displays the "values" of fields.
* PDT lets you edit the contents of fields, even fields stored
in "packed binary" form (except EBCDIC packed binary fields).
* You can tab from field-to-field to easily view or edit fields.
A structure file is a simple ASCII file that MUST be stored
in PDT's special sub-directory: PDT.DIR. The easiest way
to create or edit structure files is by using PDT. Or use
any editor or word processor -- they're very easy to create.
NOTE: When PDT saves structure files, it adds a column indi-
cating the WIDTH of each field. This can help you create
"types" or "structures" in various programming languages.
You do NOT have to add the Width column to structure files.
Here's what a structure file looks like. This is part of the
structure file we included with PDT: SAMPLE_2.STR.
PDT.STRUCTURE │ Do NOT move or change this line! │
257 <Header Size
80 <Record Size
EBCDIC <Data Type
1 , C , Deleted Record Flag
2 , C , FIRST_NAME
12 , C , LAST_NAME
Lines 1-4 are REQUIRED. They MUST be in the order and format
shown. And there must be NO blank lines before these, or
between lines in structure files.
1. The 1st line is PDT's "signature line." PDT looks for
this line to ensure that you don't overwrite your data
files (since structure files are usually saved with the
same name as your data files). If you try to read struc-
ture files without this signature line, PDT may refuse.
A.1.2
2. The 2nd line defines how long the file "header" is.
- "Headers" tell programs about a file's record and
field structure. Headers aren't data. So by
specifying a Header Size, you tell PDT not to
display the first "xxx" bytes of a file.
- If your file has no header, enter: 0 <Header Size.
In other words, this line MUST be there.
3. On line #3, enter the logical record length of each line
of data in the file (excluding the header). For example,
if records are 689 bytes long, enter: 689 <Record Size
4. Line #4 must read "ASCII <Data Type" or "EBCDIC <Data Type."
- Enter EBCDIC only if your data file is in EBCDIC format.
- When you open this data file, PDT automatically turns on
EBCDIC-to-ASCII view mode -- letting you view the file
in easier-to-understand (and edit) ASCII. If your file
is NOT in EBCDIC format, using EBCDIC here will result
in screens-full of garbage.
5. Line 5 through the last line in the structure file define
each "field" in a record. Each line has 3 sections:
- Which column the field starts in.
- What "type" of field it is (we'll define this later).
- The name of the field.
Notice you don't have to tell PDT how wide each field is.
PDT calculates this based on the fields' starting columns.
The field name is optional. If you include it, PDT can
show you which field you're in as you move around.
These 3 sections MUST be separated by 2 (and only 2)
commas. And you MUST NOT use commas inside any section.
For example, this line is illegal: 1,493, C, Comment Field
Notice the 3 commas, not two, with the errant comma in
"1,493." This line should read: 1493, C, Comment Field
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ PDT treats the first byte of files as byte #1. In some pro-│█
│ gramming languages, the first byte in files is numbered 0. │█
│ For example, a 250 byte header is in bytes 1-250, not 0-249.│█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
A.1.3
Field "Types"
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
If PDT knows the "type" of each field, it:
* Displays the value of fields as you move from field-to-field.
* Lets you press F6 (Edit Field) to edit fields. This option is
especially useful to help you edit numeric fields stored in
"packed binary" form (except EBCDIC packed binary fields).
The discussion of the EDIT menu has details on Edit Field.
Here are the symbols you'd enter to indicate different types of
fields. Note the different symbols for dBase and non-dBase files.
══════ dBase Field Types ═════ ═══ Non-dBase Field Types ════
Use This For This Field Use This For This Field
Symbol Type of Field Width Symbol Type of Field Width
──────── ───────────── ───── ──────── ───────────── ─────
C Character ? c Character ?
N Numeric ? t Tiny Integer 1
L Logical 1 i Integer 2
M Memo 10 l Long Integer 4
D Date 8 s Single MS 4
j Single IEEE 4
d Double MS 8
k Double IEEE 8
$ Currency 8
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ │▄
│ Note that symbols for dBase files are UPPER case, while │█
│ symbols for non-Dbase field types are all in lower case. │█
│ │█
│ In the non-dBase list, note the s/j and d/k pairs -- indi- │█
│ cating Microsoft (MS) versus IEEE formats, respectively. │█
│ │█
│ CAUTION: In this version of PDT, numeric fields in EBCDIC │█
│ files aren't accomodated. See notes on this elsewhere. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
In the tables above, "Field Width" indicates how many characters
or columns each field can have. "Character fields" (and dBase
Numeric fields) are "?" wide -- they vary in width. But other
fields have fixed widths. So, for example, while Integers range
from -32768 to +32767 or 0 to 65535, they are stored in 2 bytes.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
APPENDIX II: Tips; Salvaging Damaged Data Files
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Exploring or Determining File Structures
────────────────────────────────────────
To determine a file's structure, open it and move the cursor to
row 1, column 1. Now look for two or three types of patterns.
First, try to see if there's a file header. Its pattern often
differs from the pattern of data records.
For example, in the file shown below, there's a pattern of capi-
talized field names, each followed by some symbols. This is
followed by a different pattern of names, addresses, etc.
13\^X OO FIRST_NAME C 0 LAST_NAME ^
ADDRESS C k CITY C C STAT
ZIP C , Kim Johnson 3300 South 1
CO 31002 (714) 525-9933 Dennis Avery 127 Ea
George WA 98322 (801) 566-9112 Andrew Youngman
As a "rough guess" of the header's length, move the cursor to
space before the "K" in "Kim." Press ctrl-H then ctrl-Enter.
PDT will treat everything above that point as the header.
Next, determine the record length. Again, look for patterns.
For example, notice the first names here: Kim, Dennis and
Andrew. For a "rough guess" of the record length, use PDT's
"mark block" option. Put your cursor on the space before "K"
in Kim, press ctrl-B, then move down and right. As you mark
the block, PDT shows you how many bytes you've marked. When you
reach the space before "Dennis" press ctrl-L and enter the
number of bytes PDT says you've marked.
* If your data doesn't leap into proper view, press F10 or F9.
* These options adjust the record length up or down by 1. By
leaning on these keys you'll often see data swing into the
proper view. Press F4 and save a structure file.
┌─────────────────────── TIPS & NOTES ────────────────────────┐
│ When determining Record Length, watch for DIAGONAL patterns.│▄
│ │█
│ ...........xxxxxxxxxxx---------**********^^^^####!!!!!!@@@@@│█
│ @@@@@...........xxxxxxxxxxx---------**********^^^^####!!!!!!│█
│ !!!!@@@@@...........xxxxxxxxxxx---------**********^^^^####!!│█
│ │█
│ Diagonal patterns like these indicate BOTH that this is a │█
│ fixed-length record file, AND that record size isn't right. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
A.2.2
Salvaging Damaged Data Files
────────────────────────────
Registered users receive the PDT Tool Kit. It's on-disk manual
includes a section on repairing damaged data files. The Tool
Kit also contains two files called: Fix_DBF.Hdr and Fix_DBF.Fld.
These PDT structure files can be invaluable when you need to
inspect or repair dBase files. They let you examine the Header
or the Field Structure, respectively. The Tool Kit's on-disk
manual explains how to use these files.
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
APPENDIX III: Error Messages
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
We try to prevent errors from disrupting your work. For
example, we check to see if there's enough room on the disk
when you try to copy or expand files. And, unless you tell us
NOT to ask your permission before overwriting files, we'll tell
you when you're about to do so.
Most errors will likely be DOS errors like DISK or FILE errors:
* You try to write to an unformatted disk.
* You try to read from a floppy disk with the drive door open.
* A disk is damaged and can't be read or written to.
* You tell PDT to read the structure of a dBase file, but
it's not a dBase file.
In most cases, PDT will tell you an error occurred, stop what
it was doing, then let you continue. If you can, fix the error
and try again.
Other errors might be fatal -- PDT will abort. Frankly we've
never seen this happen. But it's possible.
┌─────────────────────────────────────────────────────────────┐
│ │▄
│ If a FATAL error occurs, or if an error occurs repeatedly, │█
│ PLEASE let us know. Describe exactly what you were doing, │█
│ what happened, and what error number or message appeared │█
│ (if any). We'll be glad to fix any errors or bugs we can. │█
│ │█
│ For a fast response to the problem, call: (415) 863-0530. │█
└─────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀