Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

ELSE

&pagelevel(3)&pagelevel

Initiate ELSE branch

Component:

SDF-P-BASYS

Functional area:

Procedures                                                                                                         

Domain:

PROCEDURE

Privileges:

STD-PROCESSING
OPERATING
HARDWARE-MAINTENANCE
SECURITY-ADMINISTRATION
SAT-FILE-MANAGEMENT
SAT-FILE-EVALUATION

Function

ELSE is an SDF-P control flow command and serves to initiate the ELSE branch in IF blocks. The ELSE branch (the commands between ELSE and END-IF) is processed if the test fails to meet any of the conditions set by the IF command or any ELSE-IF commands that are included (ELSE-IF command are chargeable).

In an IF-BLOCK-ERROR block or a (chargeable) IF-CMD-ERROR block, the ELSE branch is taken is no error occurs.

Restrictions

Users with SECURITY-ADMINISTRATION, SAT-FILE-EVALUATION or SAT-FILE-MANAGEMENT privilege can use the command in procedures only.

Format

ELSE                                                                                                                                                           

             

Return codes

(SC2)

SC1

Maincode

Meaning


0

CMD0001

No error


1

CMD0202

Syntax error


1

SDP0118

Command in incorrect context


1

SDP0223

Incorrect environment


3

CMD2203

Incorrect syntax file


32

CMD0221

System error (internal error)


64

SDP0091

Semantic error


130

SDP0099

No further address space available

Example

See IF command.