Logic Commands

  

DEVELOPER

All the logic commands available in PROIV are listed in alphabetic order.  Commands are also listed within Logic Types.

Command

Description

ABORT_EXIT

Specifies that an EOD or CANCEL exit is not to be taken.

ALIAS

Changes the file of reference.

ALPHA

Converts data from either numeric wide or mixed to alphanumeric.

ALPHAVAL

Converts data from wide or mixed to alphanumeric.

APPLICATION.ABOUTBOX

Specifies an 'About Box' for the application.

ASCII

Returns the ASCII equivalent character of an EBCDIC string.

Assignment (=)

Assigns to a variable the value of a constant, another variable, or an expression.

ATTRIBUTE

Changes the display attributes of a field.

BITOFF

Tests the state of a COMM control bit and returns a True condition if the named flag is Off.

BITON

Tests the state of a COMM control bit and returns a True condition if the named flag is On.

CALL

Calls a Step within a logic routine.

CALLEXIT

Returns control to calling function or logic screen, after processing end-of-function logics.

CASE

Selects a statement or block of statements for execution if a specified condition is met.

CDATE

Converts alphanumeric dates to numeric format, or vice versa.

CHANGE

Replaces all occurrences of a sub-string within the source string with the replacement sub-string.

CHAR

Returns the character of a numeric value, depending on the character set of the system.

CHECK-INPUT

This statement in field Custom Validation logic allows user input to be tested before the processing of system-defined characters.

COMMIT()

Request immediate commit of database.

CONV

Converts data from alphanumeric to numeric, or vice versa, with no editing.

COUNT

Counts the number of sub-strings separated by a specific delimiter in a given string.

CTIME

Converts an alphanumeric time to numeric format, or vice versa.

CURRENTLS.ONETIME

Allows a screen cycle property to be set to one-time only.

DCOUNT

Counts the occurrences of delimiters in a string.

DDE_EXECUTE

Executes an application command.

DDE_LAST_ERROR

Returns the last DDE error code.

DDE_POKE

Sends data to an application.

DDE_REQUEST

Used to request data from an application through the DDE links within Windows.

DEFINE

Defines string or numeric or wide scratch arrays, or changes the maximum length of a scratch string or wide variable.

DISABLE

Deactivates a PROIV process control options that changes the operation of a function.

DQUOTE

Envelops a string with double quote characters.

DSEL

Stops records from being selected for processing. 

DSEL_ALL_CB

Deselects all Control Breaks.

DSEL_CB()

Deselects a Control Break.

DSELF

Deselects a file.

EBCDIC

Returns the EBCDIC equivalent character of an ASCII string.

ENABLE

Activates a PROIV process control options that changes the operation of a function.

EXIT

Causes the logic routine of which it is a part to be exited immediately.

EXTERN

Specifies that one or more scratch variables are to be shared between the global logic and the functions in which it is used.

FLD

Causes processing to continue with a specified destination field.

FNEXIT

Terminates a function immediately.

FOR TO ENDFOR

Causes a statement or block of statements to be executed repeatedly until a condition is met.

FRAC

Determines the fractional portion of a number.

GET_LOGICAL_PATH

Provides information about a logical path definition.

GETLPSEQ

Determines the last sequence number used

GLOBAL_LSCALL

Executes a Global Function call.

GMSG

Displays a user-defined error or processing message.

IF_THEN_ELSE_ENDIF

Conditionally selects a statement or block of statements for execution.

IN-ALPHA

Tests if one string is within another string, on a byte-by byte basis.

IN-ALPHA-NLS

A multi-national function that tests whether a value is contained within a specified alphanumeric, wide, or mixed multi-byte string.

IN-LINE SUBSTRINGING

Retrieves a portion of an alphanumeric or wide string.

IN-RANGE

Tests whether a value is within a specified range.

INDEX

Returns the start position of one string within another string

INDEX_NLS

A multi-national function that returns the beginning character position of one string within another string of the same type.

INT

Determines the integer portion of a number.

ISNULL

Tests for null data condition in data buffers.

LEN

Determines the length of a string in bytes.

LEN-NLS

A multi-national function that determines the length of a string in characters.

LEN-SCREEN

Finds the number of screen positions occupied by a multi-byte string.

LITERAL_TEXT

Makes it easy to translate an application from one language to another.

LITERAL TEXT_WIDE

Makes it easy to translate an application from one language to another.

LINK

Calls an external procedural language routine from within PROIV.

LINK-CLIENT

Calls a subroutine using the Windows Client.  The format is dependent only on the Client.

LINK_CLIENT_VAR

Calls an external procedural language routine from within PROIV. and supports keywords on the call.

LINK_CRT

Calls an external procedural language routine from PROIV and provides for screen refreshing. 

LOOPEXIT

Transfers control from a block within a FOR or WHILE loop to the statement following the ENDFOR or ENDWHILE statement.

LOOPNEXT

Ignores any subsequent processing in a block and commences at the start of the next iteration of the loop.

LOWER_CASE

Converts a string into lowercase.

LSCALL

Invokes a function cycle.

LSEXIT

Terminates the current function cycle.

MAX

Determines the maximum (largest) value of a series of numbers.

MAX-PAGE()

Sets the maximum number of paging lines in an auto-sequenced paging screen.

MEAN

Determines the mean (average) of a series of numbers.

MIN

Determines the minimum (smallest) value of a series of numbers.

MIXED_CASE

Converts a string to mixed case (first letter in uppercase and the rest changed to lower case).

MSG

Displays a user-defined message when an error is encountered.

NUMERIC

Converts data from either alphanumeric or wide to numeric.

ORD

Returns the ordinal value of an alphanumeric character.

PAGE_BREAK()

Causes a Page Break.

PARMS

Declares formal parameters to Global Logic.

PFKEYCAP

Retrieves the keycap text entered at the $CRT screen for keys that are application definable.

PFKEYUSAGE

Retrieves the usage text entered at the $CRT screen for keys that are application definable.

PIC

Converts data from numeric or alphanumeric to alphanumeric, with editing.

PRECISION

Specifies the rounding factor for the result of an arithmetic operation.

REM

Determines the remainder of a division operation.

RETRY_READ()

Continues trying to read and lock a record that is locked by another process.

RETURN

 Used as the last statement executed in a called Step.

ROLLBACK()

Issues an immediate rollback request.

ROUND

Rounds a numeric value to the specified number of decimal places.

SEL-ONLY

Selects one or a range of records from the primary file.

SEL-PARTIAL

Selects a range of records from the primary file.

SEL-RANGE

Selects a range of records from the primary file.

SESSION.MODE

Returns the mode (either Standard or Component) in which the kernel is running.

SET_CURR

Used to select the record for the initial cursor position on a paging screen.

SET_HELP_FILENAME

Allows dynamic selection of Windows help file to be used for display of group and field level help.

SET_LANGUAGE_PATH

Allow assignment of logical database name as the default object base.

SET_RECORD_FOR_DELETE

Changes write mode to delete for "M" or "R" file modes.

SET_RPTOPT

Sets the current report device name and type for subsequent report output.

SETNULL

Sets data buffers to a null data state.

SQUOTE

Envelops a string with single quote characters

STEP

Branches to a specified Step Label within a logic routine. 

STRCOMP

Compares two strings (in either case sensitive or insensitive mode) returning result value.

STRFIELD

Returns the sub string located between the nth-1 and nth occurrence for a specified delimiter.

SUPPRESS_RETRY()

Prevent automatic re-reading of a locked record.

SYSF

This command is for PROIV internal use only.

SYSTEM

Allows a program to be executed from PROIV. 

SYSTEM-CRT

Passes a command to the operating system and provides for screen refreshing.

TASK_EXIT()

Automatically links to the task exit or task error function.

TOKEN

Can be called iteratively to return the string delimited by a list of delimiters

TRIM

Removes specified characters from a string.

TRIML

Removes leading spaces from a string.

TRIMR

Removes trailing spaces from a string.

UMSG

Displays a message or the contents of a critical variable to trace function processing.

UPPER_CASE

Converts a string into uppercase.

VERT-TOT

Returns the vertical total for a variable.

WHILE_ENDWHILE

Causes a statement or block of statements to be executed repeatedly until a condition is met.

WIDEPIC

Converts wide data from numeric or alphanumeric to alphanumeric, with editing.

WIDEVAL

Converts data from either numeric or alphanumeric to wide.

WIDGET_MANIPULATE

Provides dynamic manipulation of windows controls ('widgets') from an application.

WINLOCATE

Specifies or changes the screen coordinates of a window.

XFER

Transfers control of processing to an external program.  Control does not return to PROIV.

XFERIN

Accepts the parameters passed by a program that called PROIV with a transparent logon.

XQUOTE

Envelops a string with a specified character or the first character in the specified string.

Comment on this topic

Topic ID: 520081