::.. SET ..::

Sets several system parameters
Syntax
SET (CHRDEL=C | LINDEL=C | NULLCT=n | SPEED=nn | LFCNT=n
    ECHO ON | ECHO OFF | AUTOLF ON | AUTOLF OFF |
    TABSIZE=n |
    PROPERTIES OF file_name TO plist |
    TYPE OF file_name TO type |
    SUBTYPE OF file_name TO subtype |
    ENTRY_POINT OF file_name TO xxxx |
    LOW_ADDRESS OF file_name TO xxxx |
    HIGH_ADDRESS OF file_name TO xxxx |
    STACK_SIZE OF file_name TO xxxx |
    BYTE_COUNT OF file_name TO xxxx)*
Description

Sets a variety of system parameters. Any combination of the option list can be given in any order with each command entry.

CHRDEL=c

Sets the console driver single character delete symbol to character c. For example, typing 'SET CHRDEL=<control-H>' will cause all control-H's to be interpreted by the console input driver as a 'delete last character' command.

LINDEL=c

Sets the console driver line delete symbol to character c. For example, typing 'SET LINDEL=<rubout>' will cause the console driver to interpret <rubout> as a 'delete current line' command.

LFCNT=c

Sets to n the number of linefeed characters (0aH) the console driver automatically output after each carriage return if in AUTOLF=ON mode. Note that LFCNT=0 is equivalent to AUTOLF=OFF.

NULLCT=c

Sets the number of null characters (ASCII 0) to output by the system console driver after every carriage return to decimal value n. One null character is sufficient for CRT operation up to 19.2 Kbaud. Mechanical devices require longer head repositioning periods and thus a larger null count.

SPEED=nn

(MCZ only); Changes the serial communication port baud rate to the value given as nn. This port typically is used for terminal I/O. Any value from 20 baud to 4800 baud which is an even divisor of 4800, or 110, 9600, 19200, or 38400, can be selected.

ECHO ON|OFF

Sets or resets the input character echo mode in CON.

AUTOLF ON|OFF

Sets or resets the automatic line feed insertion mode flag in CON.

TABSIZE=n

Redefines all tab settings to be every n columns, starting with the leftmost column as column 0. The default is every 8 columns.

PROPERTIES OF file_name TO plist

Sets the properties of 'file_name' to those given in the properties list plist. This list must be from 'W' (write protect), 'E' (erase protect), 'S' (secret), 'L' (locked), 'R' (random), 'F' (force memory allocation), or '*' (null, i.e., no properties). Locked files cannot have their properties altered.

TYPE OF file_name TO type

Sets the file type of file 'file_name' to the type given - must be one of 'D' (directory), 'A' (ASCII), 'B' (binary) or 'P' (procedure).

SUBTYPE OF file_name TO subtype

Sets the file subtype of file 'file_name' to value 'subtype'. Only the least significant four bits of the value entered are used.

ENTRY_POINT OF file_name TO xxxx

Sets the entry point field in the descriptor record of file_name to xxxx. This is the address to which control passes when the RIO Executive loads a procedure type file. xxxx is a 16bit hexadecimal value. Only the last four hex digits of the value entered are significant.

LOW_ADDRESS OF file_name TO xxxx

Sets to xxxx the lower boundary of the memory space which must be allocatable before a file name can be loaded. xxxx is a 16bit hexadecimal value. Only the last four hex digits of the value entered are significant.

HIGH_ADDRESS OF file_name TO xxxx

Sets to xxxx the high boundary of the memory space which must be allocatable before file name can be loaded. xxxx is a 16bit hexadecimal value. Only the last four hex digits of the value entered are significant.

STACK_SIZE OF file_name TO xxxx

Sets the size of the user stack which will be allocated before execution of file_name begins. Setting the stack size to zero will result in no stack allocation; the system stack will be used instead. xxxx is a 16bit hexadecimal value. Only the last four hex digits of the value entered are significant.

BYTE_COUNT OF file_name TO xxxx

Sets the 'bytes in last record' count for file_name to xxxx. This field is used by PLZ and BASIC to determine the number of valid data bytes in the last record of a file. xxxx is a 16bit hexadecimal value. Only the last four hex digits of the value entered are significant.

I/O-Units
Unit 2 (CONOUT):Error messages
Unit 4:File I/O
Examples
%SET LINDEL=! CHRDEL=@ NULLCT=2

Sets the line delete symbol to '!', the character delete symbol to '@', and the null count to 2.

%SET PROPERTIES OF OS TO WELS

Would give file 'OS' the properties write protect, erase protect, locked and secret. Therefore it could never be altered or deleted without reformatting the disk.

%SET SUBTYPE OF $DFS/TEXT TO 8

Sets subtype of file TEXT on device DFS to 8H.

%SET ECHO ON AUTOLF OFF

Sets the terminal mode to ECHO ON and AUTOLF OFF.

%SET ENTRY_POINT OF MYPROG TO 4419 BYTE_COUNT OF MYPROG.S TO 38

Sets the entry point of MYPROG to 4419H, and the number of bytes in the last record of MYPROG.S to 38H.