| jBase Statements |
| @ |
Cursor and screen manipulation |
| ABORT |
Program termination |
| ABS |
Returns absolute value |
| ALPHA |
Returns Boolean result for alphabetic check |
| ASCII |
EBCDIC to ASCII conversion function |
| ASSIGNED |
Returns Boolean result for variable assignment |
| BITCHANGE |
Toggles the state of the specified bit |
| BITCHECK |
Returns the current value of the specified bit |
| BITLOAD |
Assigns values in the local bit table |
| BITRESET |
Resets the value of the specified bit |
| BITSET |
Sets the value of the specified bit |
| BREAK |
Break key manipulation
Loop Termination |
| CALL |
Transfer of program execution to an external subroutine |
| CALLC |
Transfer of program to an external C function |
| CASE |
Conditional branching |
| CATS |
Concatenates the corresponding elements in two dynamic arrays |
| CHAIN |
Transfer of process control |
| CHANGE |
Sub-string replacement |
| CHAR |
Returns the ASCII character equivalent of a numeric expression |
| CHARS |
Returns the ASCII character equivalents of the numeric expressions in a dynamic array |
| CHDIR |
Changes the current directory |
| CHECKSUM |
Returns numeric checksum for the supplied expression |
| CLEAR |
Initializes all variables to zero |
| CLEARCOMMON |
Initializes all unnamed common variables to a value of zero |
| CLEARDATA |
Clears data that has been stacked by the DATA statement |
| CLEARFILE |
Clears all the data from a file |
| CLEARSELECT |
Clears active select lists |
| CLOSE |
Closes a previously opened file |
| CLOSESEQ |
Closes a previously opened sequential file |
| COL1 / COL2 |
Position determination subsequent to use of the FIELD function |
| COLLECTDATA |
Retrieves data passed from the PASSDATA clause of an EXECUTE statement |
| COMMON |
Declares a list of variables and matrices that can be shared among programs |
| COMPARE |
Compares two strings |
| CONTINUE |
Used to skip code in a loop |
| CONVERT |
Converts a character string to another |
| COS |
Returns the cosine of an angle |
| COUNT |
Returns the number of times that one string occurs in another |
| CRT |
Outputs data to the terminal |
| DATA |
Stores data for stacked input |
| DATE |
Returns the date in internal form |
| DCOUNT |
Counts the number of elements in a string separated by a specified delimiter |
| DEBUG |
Passes control to the jBC debugger |
| DECRYPT |
Decodes an encrypted string |
| DEFC |
Declares an external Cto the jBC compiler |
| DEFFUN |
Declares an external jBCto the jBC compiler |
| DEL |
Removes a specified element from a dynamic array |
| DELETE |
Deletes a record from a file |
| DELETELIST |
Deletes a stored list |
| DELETESEQ |
Deletes a sequential file |
| DIMENSION |
Declares fixed length arrays to the compiler |
| DISPLAY |
Outputs data to the terminal |
| DOWNCASE |
Converts all uppercase characters in an expression to lowercase |
| DQUOTE |
Encloses a value in double quotation marks |
| DTX |
Returns the hexadecimal representation of a decimal expression |
| EBCDIC |
Converts a string value from ASCII to EBCDIC |
| ECHO |
Turns on or off the echoing of characters typed at the keyboard |
| ENCRYPT |
Encrypts strings |
| END |
Designates the end of a program or subroutine |
| ENTER |
Unconditionally passes control to another executable program |
| EQUATE |
Declares a symbol equivalent to a literal, variable or simple expression |
| EXECUTE |
Allows execution of other programs and commands |
| EXIT |
Halts the execution of a program |
| EXP |
Returns the mathematical constant e to the specified power |
| EXTRACT |
Archaic method of extracting elements from a dynamic array |
| FADD |
Performs addition on two floating point numbers |
| FDIV |
Performs division on two floating point numbers |
| FIELD |
Returns one or more delimited fields from a string |
| FIELDS |
Returns a dynamic array of delimited fields from a dynamic array of strings |
| FILELOCK |
Attempts to lock an entire file for exclusive use by this program |
| FIND |
Finds the location of a specified string within a dynamic array |
| FINDSTR |
Finds the location of a specified string within a dynamic array |
| FMT |
Formats a string to a specified pattern |
| FMUL |
Performs multiplication on two floating point numbers |
| FOLD |
Re-delimits a specified string with attribute marks |
| FOOTING |
Defines a footing to be included at the bottom of an output page |
| FORMLIST |
Creates an active select list from a dynamic array |
| FOR |
Defines the start of a fixed increment loop construct |
| FSUB |
Performs subtraction on two floating point numbers |
| FUNCTION |
Declares a user-defined function |
| GET |
Gets input from an opened serial device |
| GETCWD |
Returns the name of the current working directory |
| GETENV |
Determines the value of the specified environment variable |
| GETLIST |
Retrieves a previously stored list |
| GOSUB |
Causes execution of a local subroutine |
| GOTO |
Causes program execution to jump to the code at a specified label |
| GROUP |
Returns one or more delimited fields from a string |
| GROUPSTORE |
Replaces one group of characters in a string with another group of characters |
| HEADING |
Defines a heading to be included at the top of an output page |
| HUSH |
Turns on or off the echoing of characters typed at the keyboard |
| ICONV |
Converts data in external format to internal format |
| IF |
Allows conditional execution of statements |
| IN |
Gets raw data from the input device |
| INCLUDE |
Includes code from other files |
| INDEX |
Returns the position of a character or characters within another string |
| INDICES |
Returns information about a file's secondary index |
| INMAT |
Returns the number of dimensioned array elements |
| INPUT |
Gets data from the input device |
| INPUTCLEAR |
Clears the type-ahead buffer |
| INPUTNULL |
Allows null input to be seen by the INPUT statement |
| INS |
Allows the insertion of elements into a dynamic array |
| INSERT |
Allows the insertion of elements into a dynamic array |
| INT |
Truncates a numeric value to the nearest integer |
| IOCTL |
Returns file information |
| LEFT |
Extracts the first n characters from a string |
| LEN |
Returns the character length of an expression |
| LN |
Returns the value of the natural logarithm of a supplied expression |
| LOCATE |
Finds the position of an element in a specified dimension of a dynamic array |
| LOCK |
Sets an execution lock |
| LOOP |
Defines the start of a loop construct |
| LOWCASE |
Converts all uppercase characters in an expression to lowercase |
| LOWER |
Lowers delimiters in a string to their next lowest value |
| MAT |
Array element assignment |
| MATBUILD |
Creates a dynamic array from a dimensioned array |
| MATCHES |
Allows pattern matching to be applied to an expression |
| MATPARSE |
Assigns the elements of a dynamic array to a dimensioned array |
| MATREAD |
Reads a record and maps the elements into a dimensioned array |
| MATREADU |
Reads and locks a record and maps the elements into a dimensioned array |
| MATWRITE |
Transfers the contents of a dimensioned array to a specified record on disc |
| MATWRITEU |
Transfers the contents of a dimensioned array to a specified record on disc and preserves locks |
| MOD |
Returns the arithmetic modulo of two numeric expressions |
| MSLEEP |
Pauses program execution for a specified number of milliseconds |
| NEG |
Returns the inverse of a value |
| NOT |
Inverts the Boolean value of an expression |
| NULL |
Does nothing |
| NUM |
Returns Boolean true if the supplied value is numeric |
| OBJEXCALLBACK |
Communicates with a calling OBjEX program |
| OCONV |
Converts data in internal format to external format |
| ONGOSUB/ONGOTO |
statements Transfers program execution to a label based upon a calculation |
| OPEN |
Opens a file or device to a descriptor variable |
| OPENDEV |
Opens a file or device for sequential reading and/or writing |
| OPENINDEX |
Opens a specific index definition for a file |
| OPENPATH |
Opens a file given an absolute or relative path |
| OPENSEQ |
Opens a file for sequential reading and/or writing |
| OPENSER |
Opens a device for serial IO |
| OUT |
Sends raw characters to the current output device |
| PAGE |
Causes the current output device to page |
| PAUSE |
Allows processing to be suspended until an external event occurs |
| PERFORM |
Allows execution of other programs and commands |
| PRECISION |
Defines the number of digits of precision to be subsequently used |
| PRINT |
Sends data to the current output device |
PRINTER
PRINTERR |
Controls the destination of output from the PRINT statement
Prints standard jBASE error messages |
| PROCREAD |
Retrieves data passed from a jCL program to a jBC program |
| PROCWRITE |
Passes data back to the primary input buffer of a calling jCL program |
| PROGRAM |
Documents source code |
| PROMPT |
Defines the prompt characters used by INPUT |
| PUTENV |
Sets environment variables for the current process |
| PWR |
Raises a number to a specified power |
| QUOTE |
Encloses a value in double quotation marks |
| RAISE |
Raises delimiters in a string to their next highest value |
| READ |
Reads a record from an opened file into a variable |
| READL |
Reads a record and takes a read-only shared record lock |
| READLIST |
Retrieves a previously stored list |
| READNEXT |
Moves forward through an index |
| READPREV |
Moves backward through an index |
| READSEQ |
Reads data from a file opened for sequential access |
| READT |
Reads tape devices |
| READU |
Reads a record from an opened file into a variable respecting locks |
| READV |
Reads a field from a record in an opened file into a variable |
| READVU |
Reads a field from a record in an opened file into a variable respecting locks |
| RECORDLOCKED |
Returns the status of a record lock |
| REGEXP |
Pattern matching with regular expressions |
| RELEASE |
Releases record locks |
| REM |
Returns the arithmetic modulo of two numeric expressions |
| REMOVE |
Successively extracts delimited strings from a dynamic array |
| REPLACE |
Archaic method of replacing elements in dynamic arrays |
| RETURN |
Transfers execution to the caller of a subroutine/function or to a specific label in a program |
| REWIND |
Issues a rewind command to attached device |
| RIGHT |
Extracts the last n characters from a string |
| RND |
Generates a random number |
| RQM |
Pauses execution |
| RTNDATA |
return specific data to the RTNDATA clause of another program's EXECUTE |
| SADD |
Performs string addition |
| SDIV |
Performs string division |
| SELECT |
Creates a select list of elements in a specified variable |
| SELECTINDEX |
Creates a dynamic array of keys based on a single selection of an index key |
| SEND |
Sends output to a device |
| SENTENCE |
Returns the command used to invoke a program and the arguments it was given |
| SEQ |
Returns the numeric ASCII value of a character |
| SIN |
Returns the sine of an angle |
| SLEEP |
Pauses program execution for a specified number of seconds or until a specified time |
| SMUL |
Performs string multiplication |
| SORT |
Sorts a dynamic array |
| SOUNDEX |
Converts strings to their phonetic equivalents |
| SPACE |
Generates strings of spaces |
| SPOOLER |
Returns spooler information |
| SQRT |
Returns the square root of a number |
| SQUOTE |
Encloses a value in single quotation marks |
| SSUB |
Performs string subtraction |
| STOP |
Program termination |
| STR |
Performs string duplication |
| SUBROUTINE |
Declares an external subroutine |
| SUBSTRINGS |
Returns sub-strings of elements from a dynamic array |
| SUM |
Sums elements of a dynamic array |
| SYSTEM |
Returns system information |
| SWAP |
Sub-string replacement |
| TAN |
Returns the tangent of an angle |
| TIME |
Returns the current system time |
| TIMEDATE |
Returns the current time and date |
| TRANS |
Retrieves a field from a file |
| TRANSABORT |
Aborts and reverses the current transaction |
| TRANSQUERY |
Used to determine if currently in a transaction |
| TRANSTART |
Marks the beginning of a transaction |
| TRANSEND |
Marks the end of a successfully completed transaction |
| TRIM |
Removes characters from a string |
| TRIMB |
Removes trailing blanks |
| TRIMF |
Removes leading blanks |
| UNASSIGNED |
Returns Boolean result for variable assignment |
| UNLOCK |
Releases a previously locked execution lock |
| UPCASE |
Converts all lowercase characters in an expression to uppercase |
| WAKE |
Wakes a suspended process which has executed a pause statement |
| WEOF |
Writes an end of file mark on an attached tape device |
| WEOFSEQ |
Writes end of file mark on a file opened for sequential access |
| WRITE |
Writes a record to a previously opened file |
| WRITELIST |
Writes a list to the stored list file |
| WRITESEQ |
Writes data to a file opened for sequential access |
| WRITET |
Writes data to a tape device |
| WRITEU |
Writes a record to a previously opened file preserving locks |
| WRITEV |
Writes a record field to a previously opened file |
| WRITEVU |
Writes a record field to a previously opened file preserving locks |
| XLATE |
Retrieves a field from a file |
| XTD |
Returns the decimal representation of a hexadecimal expression |