Supplying a procedure when invoking File Manager from a REXX program
You can specify a PROC parameter to enhance File Manager processing even when you are invoking the File Manager function from a REXX program.
To use a procedure stored in a member of a PDS:
- Allocate an FMNEXEC DD that identifies a PDS where your saved procedures reside.
- Code PROC=member-name in the File Manager function invocation.
For example, to use the procedure stored in USERID.FMNEXEC(TOTALS):
Note: The TSO commands ALLOC and FREE can also be issued outside the REXX program.
To enter a procedure from the terminal
- Code PROC=* in the File Manager function invocation.
- When you run the REXX program and it invokes the
File Manager function, File Manager prompts you to enter procedure statements with
the following messages:
Type your procedure statements, pressing the Enter key at the end of each line.SYSIN DD is allocated to terminal Enter card input (EOD=NULL REPLY):
- Enter
/+
as the last line to complete the procedure and indicate end of data. File Manager then runs the requested function using the entered procedure.