Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

ENDP-RESUME

&pagelevel(3)&pagelevel

Terminate non-S procedure run and resume loaded program

Component:

SYSFILE

Functional area:

Procedures

Domain:

PROCEDURE
SDF                                                                                                         

Privileges:

STD-PROCESSING
SAT-FILE-EVALUATION
SAT-FILE-MANAGEMENT
SECURITY-ADMINISTRATION

Function

The ENDP-RESUME command terminates execution of a non-S procedure and resumes a program loaded during the procedure.
In S procedures, the EXIT-PROCEDURE command with RESUME-PROGRAM=*YES must be used for this function.

Method of operation

ENDP-RESUME is used when a program call is to be implemented as a command, e.g. a call to the PROG.EDIT problem program:

/START-EXE-PROG FROM-FILE=PROG.EDIT is to be implemented as the command /X-EDIT:

  • In a user syntax file a command must, for example, be defined under the name X-EDIT and implemented as a procedure (SDF-A statement ADD-COMMAND; for further details see the “SDF-A” manual [33]). The path name of the procedure file is also defined in the process.

  • The user syntax file must be activated (MODIFY-SDF-OPTIONS command). The user must be authorized to execute the procedure file. The procedure file may have the following contents:

    /BEGIN-PROC
    /LOAD-EXEPROG FROM-FILE=PROG.EDIT
    /ENDP-RESUME

Format

ENDP-RESUME                                                                                                                                         


Return codes

(SC2)

SC1

Maincode

Meaning


0

CMD0001

No error

2

0

SSM2039

Error on closing output system file; the SYSOUT message contains the DMS error code as an insert


1

CMD0202

Syntax error


3

CMD2203

Incorrect syntax file


32

CMD0221

System error (internal error)


64

SSM1013

No procedure has been called


130

SDP0099

No further address space available