Exec, Operands, Return codes – IBM SC34-5764-01 User Manual

Page 263: Example, File, Exec file

Advertising
background image

3. The default user profile macro that the editor tries to call is CICEPROF. The CICEPROF macro creates

an ISPF/PDF like environment. A second profile macro, named CICXPROF, is provided. CICXPROF
creates a VM/CMS XEDIT like environment.

4. If a file ID or VSE Librarian sublibrary member name is not specified, an RFS file with the special

name, NONAME, is created.

EXEC

EXEC

(1)

REXX_program

arguments

Notes:

1

If REXX_program is not specified, the last saved copy of the file that is currently being edited is
executed.

EXEC executes a REXX program within an editor session.

Operands

REXX_program

specifies the REXX program name to execute. If you do not specify a name, the last saved copy of
the file that is currently being edited will be executed. If any arguments have been defined using the
ARGS command, these will be passed.

arguments

specifies the arguments to be passed to the program specified in the REXX_program operand.

Return Codes

n

specifies the return code set by the exit of the called exec

0

Normal return

-3

Exec not found

-10

Exec name not specified

-11

Invalid exec name

-12

GETMAIN error

-99

Internal error

Example

'EXEC TEST1.EXEC X Y Z'

This example executes program TEST1.EXEC and passes X, Y, and Z as arguments.

FILE

FILe

(1)

fileid

Notes:

1

If fileid is not specified, the file is saved as the default file ID.

FILE saves the current file being edited.

Text Editor

Chapter 18. REXX/CICS Text Editor

241

Advertising