• No se han encontrado resultados

DISCUSIÓN DE RESULTADOS Y CONCLUSIONES DEL ESTUDIO

A

- Append a field to end. C

- Change this field

R

- Reposition field offsets

+

- Display next field - display previous field

E

- Exit to master menu ENTER á-K)ICE:

FIELD EDIT OPTIONS: G

-

Go to field number

-

Repositions you at the field number entered and displays the current definition of that

field.

You

will

be prompted for the field number to go to after entering the <G> option.

I

-

Insert before this

f'kjd -

Creates rcjcm for a new field by

incrementing all the higher field numbers by one. Them the field

specifications for a new field may be entered under the newly-

available field number. D

-

Delete this

field -

Deletes the current

field

and reduces all the

higher field numbers by one to adjust for the deletion. A

-

Append a field to end

-

A new field

will

be created as the last

field in the File Definition. You must enter the new field's speci

ficati

ens (see below) .

Dataf1ex 2.0 User's Manual FILE DEFINITION (FILEDEF) C-61 C

-

Change or edit this field

-

Allows you to re-enter the specifica- tions for the current

field.

R

- Reposftion field offsets

-

Required to reset

field

positions after the

file

definition has been modified. The positions of the fields in

the record buffer (field offset) must be recalculated whenever any

field is added,, deletecb or changed in length. +

- Moves you forward one field.

- - Moves you back one fie?d. E

-

Exit to master menu

-

Returns you to the FILEDEF menu. <RETURN>

-

Always moves editing to the next

field.

For examp1ep

if

you are on Field 2 and press <RETURN>, Field 3 will be displayed.

<RETURN> will create a new field

if

you are currently on the last field in a

file

definition.

You will be asked the following questions for each

field:

****** FIELD # ******

# is the number of the field you are currently editing.

FIELD NAME: (tagname)

The tagname you enter here

will

be utilized by FILEDEF and QUERY for

pranpting and documentatSom and

will

be displayed in the

file

definl-

ti

on.

It will

be used, along w¶th the DataFlex filename as part of the Data Base Element name, in the DataFlex Command Language. The tagnames are stored for each

file

in a separate ASCII

file

called rootname.TAG. The maximum tagname length is 15 characters. Valid

characters in tagnames are:

[

'A...Z', '0...9'. 'e'. C'. '#'

]

The

first

character must be alpha (A...Z). Spaces and slashes are

invalid. and will be replaced with an underscore (_).

FIELD TYPE: ( A=ASCII, N=NUMERIC, D=DATE, 0=OVERLAP )

This

will

set the field to either:

ASCII (numbers and letters) NUMERIC

- (numbers only)

DATE

- Stored Jul ian; output format: MM/DD/YY

OVERLAP

- A field which re-defines areas of the record.

The next prompt depends on the field type entered above. For ASCII fields:

NUMBER OF QURACTERS

This is the maximum number of characters to be assigned for this

fiel

d.

———————

C-62 FILE DEFINITION (FILEDEF) DataFlex 2.0 User's Manual =======

————

For NUMERIC fields:

NUMBER OF MARACTERS TO THE LEFT OF THE DECIMAL POINT

Each number is broken into two parts:

left

and right of the decimal

point. Enter the number of characters to the

left

of the decimal

point. (Minimum of 19 maximum of 14.)

NUMBER OF CltARACTERS TO THE RIGHT OF THE DECIMAL POINT

Enter the number of characters to the right of the decimal point (O to

4). The characters to the

left

and right of the decimal point are added together by FILEDEF to compute the total field length. For DATE'

fields, no questions are asked, Dates are ALWAYS stored as three-byte numbers. (

For OVERLAP fields:

FIELD OFFSET: OFFSET OF FIELD IN RECORD

This number represents the relative number

of bytes from the beginning of the record

to where the current overlap

field

starts.

If

there are no previous overlap fields in

the recor6 then this number

will

be the number of bytes in the record up to the

first

overlapped

field.

If

there are previous overlap fie1dSg their combined

length must not be counted in developing

this number.

FIELD LENGTH: LENGTH OF FIELD IN BYTES

This is the number of bytes the overlap

field

will span in the record.

It

should be the total length of the overlapped

fields.

For ALL field types:

RELATIONSHIP TO FILE: FILE NUMBER·0F RELATED FIELD

If

this

field

relates TO a field in another

fi1e9 enter the number of that

file

here. A printout of the

file

definition of the

related-to

file

would be helpful for answering this and the next questiom

if

there is a relation.

If

there is no

relationship FROM this

field,

enter a zero. RELATIONSHIP TO FIELD: (FIELD NUNEIER OF RELATED FIELD)

If

the question above was answered in the

affirmative (with a numberL then enter the number of the field which is being related TO. Otherwise, enter a zero.

The creation or editing of the selected

field

is now complete. The

information for this field will be re-displayed for inspection purposes.

If

you wish to make further changesg enter a 'C',

If

all is correct, enter a "+" to move on to the next fie16 or enter an 'El

to return to the activities menu.

~~~~~

DataFlex 2.0 User's Manual FILE DEFINITION (FILEDEF) C-63 OPTION 2

- CREATE/EDIT INDEXES

Option 2 allows you to create or change the index(s) for a

file.

The

following "dialog" with FILEDEF allows you to easily define how you want to your

file

indexed:

FILEDEF PROMPT YOUR RESPONSE

HOW MANY INDEXES FOR THIS FILE:

A NUMBER IN THE RANGE FROM

l

TO 4 (One

to nine in 16-bit computers) This will

correspond to the number of unique

indexes you wish to have automatically

maintained for this

file.