Logic Commands [ HP ALLBASE/4GL Developer Quick Reference Guide ] MPE/iX 5.0 Documentation
HP ALLBASE/4GL Developer Quick Reference Guide
Logic Commands
This guide uses the following conventions in syntax statements.
Notation Description
COMMAND Command names are shown in bold UPPERCASE
letters.
*ARGUMENT Command arguments are prefixed with the symbol
* and are shown in UPPERCASE letters.
Italics Italics denotes a parameter that you must
replace with a suitable name.
[ ] Square brackets enclose elements that are
optional. Several elements stacked inside
square brackets means that you may select any
one element.
{ } Braces enclose elements that you must include
in the command. Several elements stacked
inside braces means that you must select one
element.
... An ellipsis indicates that the preceding
element is repeated one or more times
List of Commands
Logic Commands
BACKGRND { process_name}
{ data_ref }
-----------------------------------------------------------------------------------
CALC operand operator operand [ operator operand...] = result_data_ref[ ;command]
-----------------------------------------------------------------------------------
[ { *R } ]
CALL [ *REFRESH] fn_name library_name [ parm_n { { datatype}}...]
[ { *V } ]
-----------------------------------------------------------------------------------
CHECK data_ref{ *TABLE=table }
{ file_ref[ *INDEX=index_name]*KEY=key[ entries_field_name]}
-----------------------------------------------------------------------------------
{ *S[ from_data_ref[ to_data_ref]]}
CLEAR{ *P[ from_data_ref[ to_data_ref]]}
{ *MAP from_data_ref[ to_data_ref]}
-----------------------------------------------------------------------------------
DATE date_field_1 *DIFF date_field_2 = no_days
-----------------------------------------------------------------------------------
DATE date_field_1 { +days} = result_date[ ;command]
{ -days}
-----------------------------------------------------------------------------------
DATE date_field_1 *DAY = day_field
-----------------------------------------------------------------------------------
DECISION { decision_table_name}
{ data_ref }
-----------------------------------------------------------------------------------
DEFINE %definition_name% expression
-----------------------------------------------------------------------------------
DISPLAY { *RESET = line_number} [ n]data_ref[ n]
{ *RESET = S }
Table 1-0. Logic Commands (cont.)
DM IMAGE *CLOSE :D-database ...[ ;command]
-----------------------------------------------------------------------------------
DM IMAGE *LOCK :D-database[ descriptor]...[ ;command]
-----------------------------------------------------------------------------------
{ *MODEXCL }
{ *MODLOCK }
{ *MODREAD }
DM IMAGE *MODE{ *READEXCL}:D-database... [ ; command]
{ *READLOCK}
{ *READMOD }
{ *READSHAR}
{ *UPDSHAR }
-----------------------------------------------------------------------------------
DM IMAGE *UNLOCK :D-database ... [ ; command]
-----------------------------------------------------------------------------------
ENTER { step_number}
{ data_ref }
-----------------------------------------------------------------------------------
EXIT [ *COMMIT]
-----------------------------------------------------------------------------------
{ [ *REFRESH]{ program_name}[ parm_1...parm_n]}
EXTERNAL{ { data_ref } }
{ { program_name}*COMMS }
{ { data_ref } }
-----------------------------------------------------------------------------------
FIELD
{ [ *DEFAULT] [ *INPUT ] [ *REQUIRED] [ *ECHO ] [ [ attribute]...]}[ from_data_ref[ to_data_ref]]
{ [ *DISPLAY] [ *OPTIONAL] [ *NOECHO] }
KSAM File Commands
{ *BUFFER}
FILE { *CLOSE } file_ref [ ;command]
{ *MODIFY}
{ *UNLOCK}
-----------------------------------------------------------------------------------
{ *FIRST }
FILE { *LAST }[ *NOLOCK]file_ref [ *INDEX=index_name][ ;command]
{ *NEXT }
{ *PREVIOUS}
-----------------------------------------------------------------------------------
{ *DELETE}
{ *FIND }
FILE { *INSERT}[ *NOLOCK]file_ref [ *INDEX=index_name][ *KEY=key] [ ;command]
{ *READ }
{ *WRITE }
Serial File Commands
{ *BUFFER }
{ *CLOSE }
{ *FIRST }
FILE{ *LAST }file_ref [ ;command]
{ *MODIFY }
{ *NEXT }
{ *PREVIOUS}
{ *REMOVE }
-----------------------------------------------------------------------------------
{ *INSERT}
FILE{ *READ }file_ref [ *REC=record_number][ ;command]
{ *WRITE }
SQL File Command
{ *BUFFER}
{ *CLOSE }
FILE{ *DELETE}file_ref [ ;command]
{ *INSERT}
{ *NEXT }
HP TurboIMAGE/iX File Commands
{ *BUFFER}
FILE{ *CLOSE }file_ref [ ;command]
{ *MODIFY}
{ *UNLOCK}
--------------------------------------------------------------------------------------
FILE{ *NEXT } [ *NOLOCK]file_ref [ *INDEX=index_name][ ;command]
{ *PREVIOUS}
--------------------------------------------------------------------------------------
{ *DELETE}
{ *FIND }
FILE{ *FIRST }[ *NOLOCK]file_ref [ *INDEX=index_name] [ *KEY=key] [ ;command]
{ *INSERT}
{ *LAST }
{ *WRITE }
--------------------------------------------------------------------------------------
FILE *READ{ [ *REC = recno] }[ *NOLOCK]file_ref
{ [ *KEY = key] [ *INDEX = index_name]}
--------------------------------------------------------------------------------------
IF condition_1 [ { &}condition_2] THEN command(s) [ ELSE command(s)]
[ { |} ]
Table 1-0. HP TurboIMAGE/iX File Commands (cont.)
IFLOOP loop_count condition THEN command(s) [ ELSE command(s)]
--------------------------------------------------------------------------------------
KEYS{ keys_name}
{ data_ref }
--------------------------------------------------------------------------------------
LENGTH data_ref result_data_ref
--------------------------------------------------------------------------------------
LINK[ *JOINER=joiner] link_count link_data_ref ... result_data_ref
--------------------------------------------------------------------------------------
LINKLOOP[ *JOINER=joiner] loop_count link_data_ref step_factor result_data_ref
--------------------------------------------------------------------------------------
MATH operand_1 operator operand_2 = result_data_ref [ ;command]
--------------------------------------------------------------------------------------
MATHLOOP loop_count operand_1 step_factor_1 operator operand_2 step_factor_2 =
result_data_ref step_factor_3 [ ;command]
--------------------------------------------------------------------------------------
MESSAGE message_name
--------------------------------------------------------------------------------------
{ *READ }
MODE{ *WRITE }file_ref ...
{ *LOCK }
{ *UNLOCK}
--------------------------------------------------------------------------------------
MOVE{ from_data_ref}to_data_ref
{ *NULL }
--------------------------------------------------------------------------------------
MOVELOOP loop_count{ from_data_ref step_factor_1}to_data_ref step_factor_2
{ *NULL 0 }
--------------------------------------------------------------------------------------
NOTE comment
Table 1-0. HP TurboIMAGE/iX File Commands (cont.)
{ switch_number}
OFF { *ALL }
{ *BYPASS }
{ *ENDLINE }
--------------------------------------------------------------------------------------
{ switch_number}
{ *ALL }
ON{ *BYPASS }
{ *ENDFIELD }
{ *ENDLINE }
--------------------------------------------------------------------------------------
PRINT line_group
--------------------------------------------------------------------------------------
PROCEED { process_name}
{ data_ref }
--------------------------------------------------------------------------------------
REPORT{ report_name}
{ data_ref }
--------------------------------------------------------------------------------------
SCREEN { screen_name}
{ data_ref }
--------------------------------------------------------------------------------------
SCROLL [ data_ref] ...
--------------------------------------------------------------------------------------
SELECT command; command; ...
--------------------------------------------------------------------------------------
SERIES{ begin_step_number} { end_step_number}
{ begin_data_ref } { end_data_ref }
--------------------------------------------------------------------------------------
SHOW [ *REFRESH] [ from_data_ref[ to_data_ref]]
--------------------------------------------------------------------------------------
SQL { block_name}[ ;command]
{ data_ref }
Table 1-0. HP TurboIMAGE/iX File Commands (cont.)
TIE data_ref
--------------------------------------------------------------------------------------
TOP
--------------------------------------------------------------------------------------
{ *BEGIN}
TRANSACT{ *END } [ message]
{ *UNDO }
{ *MEMO }
--------------------------------------------------------------------------------------
UPDATE
--------------------------------------------------------------------------------------
VALIDATE file_field_ref [ *INDEX=index_name]*KEY=key{ *PRESENT}
{ *ABSENT }
message_ref[ ;command]
--------------------------------------------------------------------------------------
VISIT{ function_name}
{ data_ref }
--------------------------------------------------------------------------------------
WINDOW{ window_name}
{ data_ref }
--------------------------------------------------------------------------------------
ZIP
MPE/iX 5.0 Documentation