You can start a REXX/CICS edit session from a CICS terminal (clear screen), a REXX/CICS session, another edit session, or a REXX exec. You can enter the editor by executing the CICS EDIT transaction identifier (or your site-defined transaction identifier for the REXX/CICS editor). From a clear REXX/CICS screen enter EDIT followed by a REXX File System (RFS) file identifier and an edit session is issued for this file.
While you are in the editor, you can start another edit session by entering EDIT fileid. The syntax for this method of invocation is defined in the EDIT command, section EDIT. When you write an exec, you can start the REXX/CICS editor session by issuing the CICS EDIT transaction identifier as a command. If a file ID is not specified when you invoke the editor, the file ID defaults to file NONAME in your current RFS directory. A fully qualified file ID is: poolid:\dir1\dir2\fn.ft
However, you can specify a partial file ID if the target file is in (or is going to be created in) your current directory (as specified by the CD command).
EDIT TEST.EXEC (From terminal using CICS transaction ID EDIT)
EDIT TEST.EXEC (From within an edit session using the EDIT editor command)
'EDIT TEST.EXEC' (From within an exec using the EDIT command)
'EDIT TEST.EXEC' (From terminal in a REXX/CICS REXXTRY session)
This example shows four different ways to start an edit session. The first example starts a session from REXX/CICS. The second starts a new session from an existing session. The third starts a session from a REXX exec. The fourth starts a session from a REXX/CICS REXXTRY session.