Login
Search for:


Previous | Next

From: MagerValp (all posts)
Date: 1998-09-24
Subject: Re: C 710 still
>>>>> "Zsombor" == Zsombor Bolyóczki <bolyoczki@s16.kibernet.hu> writes:

Zsombor> Hi evribody! I need some help! I'm here at work and "testing"
Zsombor> this C 710. Who knows the proper use of these commands?

Zsombor> - DOPEN - DCLOSE - SCRATCH - DIRECTORY

>From the PET disk drive users manual:

DIRECTORY (BASIC 4.0 Direct Command)

This command will display the directory without disturbing the content of the memory. You may type: DIRECTORY DO using the full word spelling but the preferred short format is illustrated which uses the first two unshifted characters followed by a shifted R.

To display the directory, type: diRd0 and press RETURN.

If using upper case display, type: DI_D0 and press RETURN.

The _ in this example represents the upper case display for a shifted R. Typing DI_D1 will display the directory for drive 1. Typing DI_ or DIRECTORY will display the directory for both drives if there is a formatted diskette present in each drive. See your BASIC 4.0 reference manual for a complete description of this BASIC command.

SCRATCH (BASIC 4.0 Direct Command)

SCRATCH direct command in BASIC 4.0 performs the same function as SCRATCH disk command.

The format is: SCRATCH Ddr,"fn"

Where: dr=drive number

fn=filename of file to be scratched

Pattern matching rules may be used with this command. As with the HEADER command, there is a built-in safety feature that queries the user: ARE YOU SURE? A positive response permits the file to be SCRATCHed while a negative response aborts the operation.

For a complete description of the SCRATCH direct command, please refer to your BASIC 4.0 reference manual.

DOPEN

The DOPEN command is available only to BASIC 4.0 users. When used with either a 4040 or 8050, DOPEN may be used to create relative files or sequential files of fixed length.

The format of DOPEN is:

DOPEN#1fn,"fn",Ddr,Lrl(,ONUdn)(,W)
>>> ^- should be lfn Where: lfn, fn, and dr are the same as defined for OPEN.

Lrl defines the record length as equal to rl

ONUdn specifies the device number equal to dn (with default
device being 8)

W may be specified to mean write mode. If W is not specified
for sequential files, the file will be read.

DOPEN is not available for the standard 2040 or 3040.

DCLOSE

The DCLOSE command is only available to BASIC 4.0 users. This command closes files opened with the DOPEN command.

The format to DCLOSE is:

DCLOSE#lfn

Where: lfn=the logical file number of the file to be closed.

The DCLOSE command may also be used in this format:

DCLOSE UNUdn

Where: dn=the device number of the disk unit (defaults to 8).

When used in this form, DCLOSE command closes all active disk files on the specified unit.

The following examples illustrate som applications of DCLOSE command:

Example 1: DCLOSE

Close all files currently open

Example 2: DCLOSE#5

Close only logical file 5.

Zsombor> The only response for these commands is a "?Syntax error".

That's strange.

--
___ . . . . . + . . o
_|___|_ + . + . + . . + + Per Olofsson
o-o . . . o + MagerValp@Goth.Org
- + + . http://www.cling.gu.se/~cl3polof/

Copyright © Plus/4 World Team, 2001-2024. Support Plus/4 World on Patreon