RDML Commands

LANSA Technical

RDML Commands

Refer to the Visual LANSA Developer Guide for:

The following commands make up the complete LANSA RDML programming language.

The hyperlink from the command column will take you to the Command's description and syntax diagram.

The in the example column will take you straight to the Command's example.

* indicates that there may be portability conflicts. Check the command for details.

Command

Description

Example

*

ABORT

Abort function with error message

 

ADD_ENTRY

Add new entry to a list

 

BEGIN_LOOP

Begin a processing group

 

BEGINCHECK

Begin validation check block

 

BROWSE

Browse and select records from a file

*

CALL

Call a program or process/function

*

CALLCHECK

Validate data by calling a program

*

CASE

Begin a case condition

 

CHANGE

Change content of field(s)

*

CHECK_FOR

Check for record in a file

*

CLOSE

Close file(s)

 

CLR_LIST

Clear a list

 

COMMIT

Commit database changes

*

CONDCHECK

Validate data by checking a condition

 

CONTINUE

Continue next iteration of loop

 

DATECHECK

Validate data as a valid date or in date range

 

DEF_ARRAY

Define an array

 

DEF_BREAK

Define report break line(s)

*

DEF_COND

Define a condition

 

DEF_FOOT

Define report foot line(s)

*

DEF_HEAD

Define report heading line(s)

*

DEF_LINE

Define report detail line(s)

*

DEF_LIST

Define a browse or working list

*

DEF_REPORT

Define report attributes

 

DEFINE

Define a field in this function

 

DELETE

Delete record(s) from a file

*

DISPLAY

Display information on a workstation

*

DLT_ENTRY

Delete an entry from a working list

 

DLT_LIST

Delete a list

 

DOUNTIL

Do until a condition is true.

 

DOWHILE

Do while a condition is true.

 

ELSE

Else, if an IF condition is not true

 

END_LOOP

End a processing loop

 

ENDCASE

End a case condition

 

ENDCHECK

End a validation check block

 

ENDIF

End an IF condition

 

ENDPRINT

End all printing

*

ENDROUTINE

End a subroutine

*

ENDSELECT

End a select loop

 

ENDUNTIL

End a DOUNTIL loop

 

ENDWHILE

End a DOWHILE loop

 

EXCHANGE

Exchange information with another function

 

EXEC_CPF

Execute a CPF command

Discontinued

*

EXEC_OS400

Execute an IBM i operating system

*

EXECUTE

Execute a subroutine

 

EXIT

Exit from LANSA

 

FETCH

Fetch a record from a file

*

FILECHECK

Validate data by checking against a file

*

FUNCTION

Define function control options

*

GET_ENTRY

Get entry from a list

 

GOTO

Pass control to another command

 

GROUP_BY

Group fields under a common name

 

IF

If a condition is true

 

IF_ERROR

If a validation error was detected

 

IF_KEY

If a key was used at workstation

*

IF_MODE

If screen display mode is

*

IF_NULL

If field(s) are null

 

IF_STATUS

If I/O status flag is

 

INCLUDE

Include RDML from another function

*

INSERT

Insert a new record into a file

*

INZ_LIST

Initialize a list

 

KEEP_AVG

Keep average of fields

 

KEEP_COUNT

Keep count of fields

 

KEEP_MAX

Keep maximum of fields

 

KEEP_MIN

Keep minimum of fields

 

KEEP_TOTAL

Keep total of fields

 

LEAVE

Leave current loop

 

LOC_ENTRY

Locate an entry in a list

 

MENU

Transfer to process main menu

*

MESSAGE

Issue a message

*

ON_ERROR

On a validation error being detected

 

OPEN

Open file(s)

*

OTHERWISE

If no WHEN commands are satisfied

 

OVERRIDE

Override field's dictionary attributes

 

POINT

Point file to another file/library/member

*

POP_UP

Present a pop up window on a workstation

*

PRINT

Print line(s) on a report

 

RANGECHECK

Validate data by a range of values check

 

RENAME

Rename a field within a file

*

REQUEST

Request information from the workstation

*

RETURN

Return from a subroutine

 

ROLLBACK

Roll back database changes

*

SELECT

Select records from a file

*

SELECTLIST

Select entries from a list

 

SELECT_SQL

Select records from a file using SQL

*

SET_ERROR

Set a validation error

 

SET_MODE

Set screen display mode

*

SKIP

Skip to line "n" on a report

 

SORT_LIST

Sort list into a nominated order

*

SPACE

Space "n" lines on a report

 

SUBMIT

Submit a program or process to batch

*

SUBROUTINE

Define a subroutine

*

SUBSTRING

Substring one field into another field

 

TRANSFER

Transfer control to another function

*

UPD_ENTRY

Update an entry in a list

 

UPDATE

Update record(s) in a file

*

UPRINT

Print information (unformatted)

*

USE

Use a Built In Function

 

VALUECHECK

Validate data by a list of values check

 

WHEN

When condition is true (within CASE)