Supplying a procedure when running File Manager in batch
If you are using one of the File Manager functions that supports enhanced processing, then you use the PROC parameter to supply the procedure.
The procedure that you use to enhance File Manager processing can either be a member of the PDS allocated to ddname FMNEXEC, or it can be coded in-line (by specifying an asterisk as the procedure name).
To use a procedure stored in a member of a PDS:
- Code an
FMNEXEC DD
statement that specifies the name of the PDS that contains the member. - Code
PROC=member-name
in the File Manager control statements.
For example, to use the REXX procedure stored in FMNUSER.EXEC(EXAMPLE):
To use an inline procedure:
- Code
PROC=*
in the File Manager control statements. - Code your DFSORT or REXX statements in the SYSIN data stream,
following the
PROC=*
statement. - Terminate the DFSORT or REXX statements with a line containing a slash and a plus sign (/+) in columns 1–2.
For example:
When coding an inline procedure, do not begin comments in column
1; if you do, the /*
is interpreted as an end-of-data
delimiter.